<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0066)http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/ -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"><head profile="http://gmpg.org/xfn/11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="./Linux Crontab  15 Awesome Cron Job Examples_files/widget095.css" media="all">

<title>Linux Crontab: 15 Awesome Cron Job Examples</title>
<meta name="robots" content="noodp, noydir">
<link rel="stylesheet" href="./Linux Crontab  15 Awesome Cron Job Examples_files/style.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="./Linux Crontab  15 Awesome Cron Job Examples_files/layout.css" type="text/css" media="screen, projection">
<!--[if lte IE 8]><link rel="stylesheet" href="http://static.thegeekstuff.com/wp-content/themes/thesis_18/lib/css/ie.css?122710-193752" type="text/css" media="screen, projection" /><![endif]-->
<link rel="stylesheet" href="./Linux Crontab  15 Awesome Cron Job Examples_files/custom.css" type="text/css" media="screen, projection">
<link rel="canonical" href="./Linux Crontab  15 Awesome Cron Job Examples_files/Linux Crontab  15 Awesome Cron Job Examples.html">
<link rel="alternate" type="application/rss+xml" title="The Geek Stuff RSS Feed" href="http://feedproxy.google.com/TheGeekStuff">
<link rel="pingback" href="http://www.thegeekstuff.com/xmlrpc.php">
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.thegeekstuff.com/xmlrpc.php?rsd">
<link href="http://static.thegeekstuff.com/favicon.ico" rel="icon" type="image/x-icon">
<script id="LR1" type="text/javascript" async="" src="./Linux Crontab  15 Awesome Cron Job Examples_files/hubclient.js"></script><script async="" src="./Linux Crontab  15 Awesome Cron Job Examples_files/beacon.js"></script><script async="" src="./Linux Crontab  15 Awesome Cron Job Examples_files/beacon.js"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/cb=gapi.loaded_0" async=""></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/plusone.js" gapi_processed="true"></script>
<link rel="alternate" type="application/rss+xml" title="The Geek Stuff » Linux Crontab: 15 Awesome Cron Job Examples Comments Feed" href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/feed/">

<!-- All in One SEO Pack 1.6.13.8 by Michael Torbert of Semper Fi Web Design[287,337] -->
<meta name="description" content="An experienced Linux sysadmin knows the importance of running the routine maintenance jobs in the background automatically. Linux Cron utility is an">
<link rel="canonical" href="./Linux Crontab  15 Awesome Cron Job Examples_files/Linux Crontab  15 Awesome Cron Job Examples.html">
<!-- /all in one seo pack -->
<div style="visibility: hidden; height: 1px; width: 1px; position: absolute; z-index: 100000; " id="_atssh"><iframe id="_atssh67" title="AddThis utility frame" style="height: 1px; width: 1px; position: absolute; z-index: 100000; border: 0px; left: 0px; top: 0px; " src="./Linux Crontab  15 Awesome Cron Job Examples_files/sh101.html"></iframe></div><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/core041.js"></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/saved_resource"></script><link type="text/css" href="./Linux Crontab  15 Awesome Cron Job Examples_files/inputtools.css" rel="stylesheet"><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/inputtools.js"></script></head>
<body class="custom" data-twttr-rendered="true"><iframe id="twttrHubFrameSecure" allowtransparency="true" frameborder="0" scrolling="no" tabindex="0" name="twttrHubFrameSecure" style="position: absolute; top: -9999em; width: 10px; height: 10px; " src="./Linux Crontab  15 Awesome Cron Job Examples_files/hub(1).html"></iframe><iframe id="twttrHubFrame" allowtransparency="true" frameborder="0" scrolling="no" tabindex="0" name="twttrHubFrame" style="position: absolute; top: -9999em; width: 10px; height: 10px; " src="./Linux Crontab  15 Awesome Cron Job Examples_files/hub.html"></iframe>
<div id="container">
<div id="page">
	<div id="header">
<p id="logo"><a href="http://www.thegeekstuff.com/"><img src="./Linux Crontab  15 Awesome Cron Job Examples_files/thegeekstuff.gif" alt="The Geek Stuff"></a></p><div id="header_ad"><div id="header_ad1">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-8090601437064582";
/* TGS Logo Header Big Image Only */
google_ad_slot = "4708993701";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><ins id="aswift_0_anchor" style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><iframe allowtransparency="true" frameborder="0" height="90" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="728" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;"></iframe></ins></ins>
</div></div>
	</div>
<ul class="menu">
<li class="tab tab-home"><a href="http://www.thegeekstuff.com/">Home</a></li>
<li class="tab tab-1"><a href="http://www.thegeekstuff.com/about/" title="">About</a></li>
<li class="tab tab-2"><a href="http://www.thegeekstuff.com/linux-101-hacks-ebook/" title="Linux 101 Hacks eBook, by Ramesh Natarajan">Free eBook</a></li>
<li class="tab tab-3"><a href="http://www.thegeekstuff.com/archives-2/" title="Archives">Archives</a></li>
<li class="tab tab-4"><a href="http://www.thegeekstuff.com/best-of-the-blog/" title="Best of the Blog">Best of the Blog</a></li>
<li class="tab tab-5"><a href="http://www.thegeekstuff.com/contact/" title="Contact">Contact</a></li>
</ul>
<div id="top-ad-menu">
&nbsp;
<script type="text/javascript"><!--
google_ad_client = "pub-8090601437064582";
/* TGS Top Menu Horiz Link */
google_ad_slot = "0094642447";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><ins id="aswift_1_anchor" style="display:block;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><iframe allowtransparency="true" frameborder="0" height="15" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="728" id="aswift_1" name="aswift_1" style="left:0;position:absolute;top:0;"></iframe></ins></ins>
</div>
	<div id="content_box">
		<div id="content" class="hfeed">

			<div class="post-534 post type-post status-publish format-standard hentry category-linux tag-etccronallow tag-etccrond tag-etccrontab tag-varspoolcron tag-cron-examples tag-crontab-php tag-crontab-script tag-crontab-tutorial tag-learn-crontab tag-linux-crond-daemon tag-practical-cron-example tag-productivity-tips-for-geeks tag-schedule-job-in-linux post_box top" id="post-534">
				<div class="headline_area">
					<h1 class="entry-title">Linux Crontab: 15 Awesome Cron Job Examples</h1>
					<p class="headline_meta">by <span class="author vcard fn">SathiyaMoorthy</span> on <abbr class="published" title="2009-06-11">June 11, 2009</abbr></p>
				</div>
				<div class="format_text entry-content">
<div style="margin:7px 0px 6px 0px; padding:5px;"> 

<div style="float:left; width=95px">
<div style="height: 20px; width: 90px; display: inline-block; text-indent: 0px; margin: 0px; padding: 0px; background-color: transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; " id="___plusone_0"><iframe allowtransparency="true" frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 90px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 20px; " tabindex="0" vspace="0" width="100%" id="I0_1349155631466" name="I0_1349155631466" src="./Linux Crontab  15 Awesome Cron Job Examples_files/fastbutton.html" title="+1"></iframe></div>
</div>

<div style="float:left; padding:2px; width:90px"><iframe src="./Linux Crontab  15 Awesome Cron Job Examples_files/saved_resource.html" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowtransparency="true"></iframe>
</div>

<div style="width=95px">
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="./Linux Crontab  15 Awesome Cron Job Examples_files/tweet_button.1347008535.html" class="twitter-share-button twitter-count-horizontal" style="width: 107px; height: 20px; " title="Twitter Tweet Button" data-twttr-rendered="true"></iframe><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/widgets.js"></script>
</div>

</div>
<p><img src="./Linux Crontab  15 Awesome Cron Job Examples_files/linux-crontab-examples-300x270.png" alt="" title="Linux Crontab" width="300" height="270" class="alignright size-medium wp-image-10913">An experienced Linux sysadmin knows the importance of running the routine maintenance jobs in the background automatically.<br>
<code> </code><br>
Linux Cron utility is an effective way to schedule a routine background job at a specific time and/or day on an on-going basis.<br>
<code> </code><br>
This article is part of the on-going <a href="http://www.thegeekstuff.com/tag/productivity-tips-for-geeks/">Productivity Tips For Geeks</a> series.  In this article, let us review 15 awesome examples of crontab job scheduling.<br>
<code> </code><br>
<span id="more-534"></span></p>
<h3>Linux Crontab Format</h3>
<pre>MIN HOUR DOM MON DOW CMD</pre>
<table border="1" cellspacing="0" cellpadding="0" align="center" summary="Cron fields table">
<caption>Table: Crontab Fields and Allowed Ranges (Linux Crontab Syntax)</caption>
<tbody>
<tr>
<th>Field</th>
<th>Description</th>
<th>Allowed Value</th>
</tr>
<tr>
<td>MIN</td>
<td>Minute field</td>
<td>0 to 59</td>
</tr>
<tr>
<td>HOUR</td>
<td>Hour field</td>
<td>0 to 23</td>
</tr>
<tr>
<td>DOM</td>
<td>Day of Month</td>
<td>1-31</td>
</tr>
<tr>
<td>MON</td>
<td>Month field</td>
<td>1-12</td>
</tr>
<tr>
<td>DOW</td>
<td>Day Of Week</td>
<td>0-6</td>
</tr>
<tr>
<td>CMD</td>
<td>Command</td>
<td>Any command to be executed.</td>
</tr>
</tbody>
</table>
<h3>1. Scheduling a Job For a Specific Time</h3>
<p>The basic usage of cron is to execute a job in a specific time as shown below. This will execute the Full backup shell script (full-backup) on <strong>10th June 08:30 AM</strong>.<br>
<code> </code><br>
Please note that the time field uses 24 hours format. So, for 8 AM use 8, and for 8 PM use 20.</p>
<pre>30 08 10 06 * /home/ramesh/full-backup</pre>
<ul>
<li><strong>30</strong> – 30th Minute</li>
<li><strong>08</strong> – 08 AM</li>
<li><strong>10</strong> – 10th Day</li>
<li><strong>06</strong> – 6th Month (June)</li>
<li><strong>*</strong> – Every day of the week</li>
</ul>
<h3>2. Schedule a Job For More Than One Instance (e.g. Twice a Day)</h3>
<p>The following script take a incremental backup twice a day every day.<br>
<code> </code><br>
This example executes the specified incremental backup shell script (incremental-backup) at 11:00 and 16:00 on every day. The comma separated value in a field specifies that the command needs to be executed in all the mentioned time.</p>
<pre>00 11,16 * * * /home/ramesh/bin/incremental-backup</pre>
<ul>
<li><strong>00</strong> – 0th Minute (Top of the hour)</li>
<li><strong>11,16</strong> – 11 AM and 4 PM</li>
<li><strong>*</strong> – Every day</li>
<li><strong>*</strong> – Every month</li>
<li><strong>*</strong> – Every day of the week</li>
</ul>
<h3>3. Schedule a Job for Specific Range of Time (e.g. Only on Weekdays)</h3>
<p>If you wanted a job to be scheduled for every hour with in a specific range of time then use the following.</p>
<h4>Cron Job everyday during working hours</h4>
<p>This example checks the status of the database everyday (including weekends) during the working hours 9 a.m – 6 p.m</p>
<pre>00 09-18 * * * /home/ramesh/bin/check-db-status</pre>
<ul>
<li><strong>00</strong> – 0th Minute (Top of the hour)</li>
<li><strong>09-18</strong> – 9 am, 10 am,11 am, 12 am, 1 pm, 2 pm, 3 pm, 4 pm, 5 pm, 6 pm</li>
<li><strong>*</strong> – Every day</li>
<li><strong>*</strong> – Every month</li>
<li><strong>*</strong> – Every day of the week</li>
</ul>
<h4>Cron Job every weekday during working hours</h4>
<p>This example checks the status of the database every weekday (i.e excluding Sat and Sun) during the working hours 9 a.m – 6 p.m.</p>
<pre>00 09-18 * * 1-5 /home/ramesh/bin/check-db-status</pre>
<ul>
<li><strong>00</strong> – 0th Minute (Top of the hour)</li>
<li><strong>09-18</strong> – 9 am, 10 am,11 am, 12 am, 1 pm, 2 pm, 3 pm, 4 pm, 5 pm, 6 pm</li>
<li><strong>*</strong> – Every day</li>
<li><strong>*</strong> – Every month</li>
<li><strong>1-5</strong> -Mon, Tue, Wed, Thu and Fri (Every Weekday)</li>
</ul>
<h3>4. How to View Crontab Entries?</h3>
<h4>View Current Logged-In User’s Crontab entries</h4>
<p>To view your crontab entries type crontab -l from your unix account as shown below.</p>
    <center>
      <div style="margin-left:2px; margin-top:10px; margin-bottom:10px; ">

        <!-- AD BLOCK -->
		
<script type="text/javascript"><!--
google_ad_client = "pub-8090601437064582";
/* TGS Inside Content Big */
google_ad_slot = "8006040097";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px"><ins id="aswift_2_anchor" style="display:block;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px"><iframe allowtransparency="true" frameborder="0" height="280" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="336" id="aswift_2" name="aswift_2" style="left:0;position:absolute;top:0;"></iframe></ins></ins>

        <!-- END AD BLOCK -->

	  </div>
    </center>


<pre>ramesh@dev-db$ <strong>crontab -l</strong>
@yearly /home/ramesh/annual-maintenance
*/10 * * * * /home/ramesh/check-disk-space

[<strong>Note:</strong> This displays crontab of the current logged in user]</pre>
<h4>View Root Crontab entries</h4>
<p>Login as root user (su – root) and do crontab -l as shown below.</p>
<pre>root@dev-db# crontab -l
no crontab for root</pre>
<h4>Crontab HowTo: View Other Linux User’s Crontabs entries</h4>
<p>To view crontab entries of other Linux users, login to root and use <strong>-u {username} -l</strong> as shown below.</p>
<pre>root@dev-db# <strong>crontab -u sathiya -l</strong>
@monthly /home/sathiya/monthly-backup
00 09-18 * * * /home/sathiya/check-db-status</pre>
<h3>5. How to Edit Crontab Entries?</h3>
<h4>Edit Current Logged-In User’s Crontab entries</h4>
<p>To edit a crontab entries, use crontab -e as shown below. By default this will edit the current logged-in users crontab.</p>
<pre>ramesh@dev-db$ <strong>crontab -e</strong>
@yearly /home/ramesh/centos/bin/annual-maintenance
*/10 * * * * /home/ramesh/debian/bin/check-disk-space
~
"/tmp/crontab.XXXXyjWkHw" 2L, 83C

[<strong>Note:</strong> This will open the crontab file in Vim editor for editing.
Please note cron created a temporary /tmp/crontab.XX... ]</pre>
<p>When you save the above temporary file with :wq, it will save the crontab and display the following message indicating the crontab is successfully modified.</p>
<pre>~
"crontab.XXXXyjWkHw" 2L, 83C written
crontab: installing new crontab</pre>
<h4>Edit Root Crontab entries</h4>
<p>Login as root user (su – root) and do crontab -e as shown below.</p>
<pre>root@dev-db# crontab -e</pre>
<h4>Edit Other Linux User’s Crontab File entries</h4>
<p>To edit crontab entries of other Linux users, login to root and use <strong>-u {username} -e</strong> as shown below.</p>
<pre>root@dev-db# <strong>crontab -u sathiya -e</strong>
@monthly /home/sathiya/fedora/bin/monthly-backup
00 09-18 * * * /home/sathiya/ubuntu/bin/check-db-status
~
~
~
"/tmp/crontab.XXXXyjWkHw" 2L, 83C</pre>
<h3>6. Schedule a Job for Every Minute Using Cron.</h3>
<p>Ideally you may not have a requirement to schedule a job every minute.  But understanding this example will will help you understand the other examples mentioned below in this article.</p>
<pre>* * * * * CMD</pre>
<p>The * means all the possible unit — i.e every minute of every hour through out the year. More than using this * directly, you will find it very useful in the following cases.</p>
<ul>
<li>When you specify */5 in minute field means every 5 minutes.</li>
<li>When you specify 0-10/2 in minute field mean every 2 minutes in the first 10 minute.</li>
<li>Thus the above convention can be used for all the other 4 fields.</li>
</ul>
<h3>7. Schedule a Background Cron Job For Every 10 Minutes.</h3>
<p>Use the following, if you want to check the disk space every 10 minutes.</p>
<pre>*/10 * * * * /home/ramesh/check-disk-space</pre>
<p>It executes the specified command check-disk-space every 10 minutes through out the year. But you may have a requirement of executing the command only during office hours or vice versa. The above examples shows how to do those things.<br>
<code> </code><br>
Instead of specifying values in the 5 fields, we can specify it using a single keyword as mentioned below.<br>
<code> </code><br>
There are special cases in which instead of the above 5 fields you can use @ followed by a keyword — such as reboot, midnight, yearly, hourly.</p>
<table style="80px;" border="1" cellspacing="0" cellpadding="0" width="173" align="center" summary="Cron special keywords">
<caption>Table: Cron special keywords and its meaning</caption>
<tbody>
<tr>
<th>Keyword</th>
<th>Equivalent</th>
</tr>
<tr>
<td>@yearly</td>
<td>0 0 1 1 *</td>
</tr>
<tr>
<td>@daily</td>
<td>0 0 * * *</td>
</tr>
<tr>
<td>@hourly</td>
<td>0 * * * *</td>
</tr>
<tr>
<td>@reboot</td>
<td>Run at startup.</td>
</tr>
</tbody>
</table>
<h3>8. Schedule a Job For First Minute of Every Year using @yearly</h3>
<p>If you want a job to be executed on the first minute of every year, then you can use the <strong>@yearly</strong> cron keyword as shown below.<br>
<code> </code><br>
This will execute the system annual maintenance using annual-maintenance shell script at 00:00 on Jan 1st for every year.</p>
<pre>@yearly /home/ramesh/red-hat/bin/annual-maintenance</pre>
<h3>9. Schedule a Cron Job Beginning of Every Month using @monthly</h3>
<p>It is as similar as the @yearly as above. But executes the command monthly once using <strong>@monthly</strong> cron keyword.<br>
<code> </code><br>
This will execute the shell script tape-backup at 00:00 on 1st of every month.</p>
<pre>@monthly /home/ramesh/suse/bin/tape-backup</pre>
<h3>10. Schedule a Background Job Every Day using @daily</h3>
<p>Using the <strong>@daily</strong> cron keyword, this will do a daily log file cleanup using cleanup-logs shell scriptat 00:00 on every day.</p>
<pre>@daily /home/ramesh/arch-linux/bin/cleanup-logs "day started"</pre>
<h3>11. How to Execute a Linux Command After Every Reboot using @reboot?</h3>
<p>Using the <strong>@reboot</strong> cron keyword, this will execute the specified command once after the machine got booted every time.</p>
<pre>@reboot CMD</pre>
<h3>12. How to Disable/Redirect the Crontab Mail Output using MAIL keyword?</h3>
<p>By default crontab sends the job output to the user who scheduled the job. If you want to redirect the output to a specific user, add or update the MAIL variable in the crontab as shown below.</p>
<pre>ramesh@dev-db$ crontab -l
MAIL="ramesh"

@yearly /home/ramesh/annual-maintenance
*/10 * * * * /home/ramesh/check-disk-space

[<strong>Note:</strong> Crontab of the current logged in user with MAIL variable]</pre>
<p><code> </code><br>
If you wanted the mail not to be sent to anywhere, i.e to stop the crontab output to be emailed, add or update the MAIL variable in the crontab as shown below.</p>
<pre>MAIL=""</pre>
<h3>13. How to Execute a Linux Cron Jobs Every Second Using Crontab.</h3>
<p>You cannot schedule a every-second cronjob. Because in cron the minimum unit you can specify is minute.  In a typical scenario, there is no reason for most of us to run any job every second in the system.</p>
<div id="example14">
</div>
<h3>14. Specify PATH Variable in the Crontab</h3>
<p>All the above examples we specified absolute path of the Linux command or the shell-script that needs to be executed.<br>
<code> </code><br>
For example, instead of specifying /home/ramesh/tape-backup, if you want to just specify tape-backup, then add the path /home/ramesh to the PATH variable in the crontab as shown below.</p>
<pre>ramesh@dev-db$ crontab -l

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/home/ramesh

@yearly annual-maintenance
*/10 * * * * check-disk-space

[<strong>Note:</strong> Crontab of the current logged in user with PATH variable]</pre>
<h3>15. Installing Crontab From a Cron File</h3>
<p>Instead of directly editing the crontab file, you can also add all the entries to a cron-file first. Once you have all thoese entries in the file, you can upload or install them to the cron as shown below.</p>
<pre>ramesh@dev-db$ crontab -l
no crontab for ramesh

$ cat cron-file.txt
@yearly /home/ramesh/annual-maintenance
*/10 * * * * /home/ramesh/check-disk-space

ramesh@dev-db$ <strong>crontab cron-file.txt</strong>

ramesh@dev-db$ crontab -l
@yearly /home/ramesh/annual-maintenance
*/10 * * * * /home/ramesh/check-disk-space</pre>
<p><strong>Note:</strong> This will install the cron-file.txt to your crontab, which will also remove your old cron entries. So, please be careful while uploading cron entries from a cron-file.txt.</p>
<h3>Additional Cron Tutorials</h3>
<ul>
<li><a href="http://www.thegeekstuff.com/2011/05/anacron-examples/">Cron Vs Anacron: How to Setup Anacron on Linux (With an Example)</a></li>
<li><a href="http://www.thegeekstuff.com/2011/07/cron-every-5-minutes/">How to Run Cron Every 5 Minutes, Seconds, Hours, Days, Months</a></li>
<li><a href="http://www.thegeekstuff.com/2011/12/crontab-command/">6 Linux Crontab Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/11/how-to-install-edit-or-remove-cron-jobs-in-batch-mode/">How To Install, Edit, or Remove Cron Jobs in Batch Mode</a></li>
<li><a href="http://www.thegeekstuff.com/2010/06/at-atq-atrm-batch-command-examples/">Understand at, atq, atrm, batch Commands using 9 Examples</a></li>
</ul>
<h3>Awesome Linux Articles</h3>
<p>Following are few awesome <strong>15 examples</strong> articles that you might find helpful.</p>
<ul>
<li><a href="http://www.thegeekstuff.com/2009/03/15-practical-linux-find-command-examples/">Mommy, I found it! — 15 Practical Linux Find Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/">15 Examples To Master Linux Command Line History</a></li>
<li><a href="http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/">Unix LS Command: 15 Practical Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/">Get a Grip on the Grep! – 15 Practical Grep Command Examples</a></li>
</ul>
<div style="margin:7px 0px 3px 0px; padding:5px; background:#F2F0E8">

<div style="float:left; width=95px">
<div style="height: 20px; width: 90px; display: inline-block; text-indent: 0px; margin: 0px; padding: 0px; background-color: transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; " id="___plusone_1"><iframe allowtransparency="true" frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 90px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 20px; " tabindex="0" vspace="0" width="100%" id="I1_1349155631483" name="I1_1349155631483" src="./Linux Crontab  15 Awesome Cron Job Examples_files/fastbutton(1).html" title="+1"></iframe></div>
</div>

<div style="float:left; width=95px">
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="./Linux Crontab  15 Awesome Cron Job Examples_files/tweet_button.1347008535(1).html" class="twitter-share-button twitter-count-horizontal" style="width: 107px; height: 20px; " title="Twitter Tweet Button" data-twttr-rendered="true"></iframe><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/widgets.js"></script>
</div>

<div style="float:left; padding:2px; width:90px"><iframe src="./Linux Crontab  15 Awesome Cron Job Examples_files/saved_resource.html" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowtransparency="true"></iframe>
</div>

<div style="float:left; padding:2px; width:70px">
<img src="./Linux Crontab  15 Awesome Cron Job Examples_files/bookmark-icon16.png">
<!-- AddThis Button BEGIN --> 
<script type="text/javascript"> 
  addthis_options = 'favorites, email, delicious, reddit, stumbleupon, facebook, twitter, google, digg, myspace, more';
</script> 
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4ac6c0d77fc11b75" rel="nofollow"> 
Share
</a> 
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/addthis_widget.js"></script> 
<!-- AddThis Button END --> 
</div>

<div style="padding:1px">
<img src="./Linux Crontab  15 Awesome Cron Job Examples_files/comment-icon16.png">&nbsp;<a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#respond">Comment</a> 
</div>

</div>
<h3>If you enjoyed this article, you might also like..</h3>
<table>
<tbody><tr>
<td valign="top">
<ol>
<li><a href="http://www.thegeekstuff.com/2010/12/50-unix-linux-sysadmin-tutorials/">50 Linux Sysadmin Tutorials</a></li>
<li><a href="http://www.thegeekstuff.com/2010/11/50-linux-commands/">50 Most Frequently Used Linux Commands (With Examples)</a></li>
<li><a href="http://www.thegeekstuff.com/2011/12/linux-performance-monitoring-tools/">Top 25 Best Linux Performance Monitoring and Debugging Tools</a></li>
<li><a href="http://www.thegeekstuff.com/2009/03/15-practical-linux-find-command-examples/">Mommy, I found it! – 15 Practical Linux Find Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/linux-101-hacks-ebook/">Linux 101 Hacks 2nd Edition eBook</a>&nbsp;<img title="Linux 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/free-small.png" alt="Linux 101 Hacks Book"></li>
</ol>
</td>
<td>
<ul>
<li><a href="http://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/">Awk Introduction – 7 Awk Print Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/10/unix-sed-tutorial-advanced-sed-substitution-examples/">Advanced Sed Substitution Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/03/8-essential-vim-editor-navigation-fundamentals/">8 Essential Vim Editor Navigation Fundamentals</a></li>
<li><a href="http://www.thegeekstuff.com/2011/06/iptables-rules-examples/">25 Most Frequently Used Linux IPTables Rules Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2008/08/turbocharge-putty-with-12-powerful-add-ons-software-for-geeks-3/">Turbocharge PuTTY with 12 Powerful Add-Ons</a></li>
</ul>
</td>
</tr>
</tbody></table>
<br>
<center> 
<table border="0" cellspacing="10"> 
<tbody><tr> 
<td> 
<a rel="nofollow" href="http://www.thegeekstuff.com/bash-101-hacks-ebook/"><img title="Bash 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/bash-132.png" alt="Bash 101 Hacks Book"></a> 
</td> 
<td> 
<a rel="nofollow" href="http://www.thegeekstuff.com/sed-awk-101-hacks-ebook/"><img title="Sed and Awk 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/sed-and-awk-132.png" alt="Sed and Awk 101 Hacks Book"></a> 
</td> 
<td> 
<a rel="nofollow" href="http://www.thegeekstuff.com/nagios-core-ebook/"><img title="Nagios Core 3 Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/nagios-core-132.png" alt="Nagios Core 3 Book"></a> 
</td> 
<td> 
<a rel="nofollow" href="http://www.thegeekstuff.com/vim-101-hacks-ebook/"><img title="Vim 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/vim-101-hacks-132.png" alt="Vim 101 Hacks Book"></a> 
</td> 
</tr> 
</tbody></table> 
</center>
<br>
<div id="tgs-tags">
Tags: <a href="http://www.thegeekstuff.com/tag/etccronallow/" rel="tag">/etc/cron.allow</a>, <a href="http://www.thegeekstuff.com/tag/etccrond/" rel="tag">/etc/cron.d</a>, <a href="http://www.thegeekstuff.com/tag/etccrontab/" rel="tag">/etc/crontab</a>, <a href="http://www.thegeekstuff.com/tag/varspoolcron/" rel="tag">/var/spool/cron</a>, <a href="http://www.thegeekstuff.com/tag/cron-examples/" rel="tag">Cron examples</a>, <a href="http://www.thegeekstuff.com/tag/crontab-php/" rel="tag">Crontab PHP</a>, <a href="http://www.thegeekstuff.com/tag/crontab-script/" rel="tag">Crontab Script</a>, <a href="http://www.thegeekstuff.com/tag/crontab-tutorial/" rel="tag">Crontab Tutorial</a>, <a href="http://www.thegeekstuff.com/tag/learn-crontab/" rel="tag">Learn crontab</a>, <a href="http://www.thegeekstuff.com/tag/linux-crond-daemon/" rel="tag">Linux Crond Daemon</a>, <a href="http://www.thegeekstuff.com/tag/practical-cron-example/" rel="tag">Practical Cron example</a>, <a href="http://www.thegeekstuff.com/tag/productivity-tips-for-geeks/" rel="tag">Productivity Tips For Geeks</a>, <a href="http://www.thegeekstuff.com/tag/schedule-job-in-linux/" rel="tag">Schedule job in Linux</a></div>
				</div>
			</div>

			<div id="comments">
				<div id="comments_intro" class="comments_intro">
					<p><span class="bracket">{</span> <span>114</span> comments… read them below or <a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#respond" rel="nofollow">add one</a> <span class="bracket">}</span></p>
				</div>

				<dl id="comment_list">
					<dt class="comment even thread-even depth-1" id="comment-11378">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11378" title="Permalink to this comment" rel="nofollow">1</a></span>
<span class="comment_author">Mahesh</span>
<span class="comment_time">June 11, 2009 at 10:26 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11378">
<p>Another great post. Thank you.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-11379">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11379" title="Permalink to this comment" rel="nofollow">2</a></span>
<span class="comment_author">Mihir.G.Joshi</span>
<span class="comment_time">June 11, 2009 at 11:47 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11379">
<p>Good One ……</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11388">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11388" title="Permalink to this comment" rel="nofollow">3</a></span>
<span class="comment_author">anil beniwal</span>
<span class="comment_time">June 11, 2009 at 1:59 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11388">
<p>gud job dude</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-11403">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11403" title="Permalink to this comment" rel="nofollow">4</a></span>
<span class="comment_author">shashank</span>
<span class="comment_time">June 11, 2009 at 11:38 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11403">
<p>Thanks </p>
<p>It’s very use full.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11416">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11416" title="Permalink to this comment" rel="nofollow">5</a></span>
<span class="comment_author">RAJESH</span>
<span class="comment_time">June 12, 2009 at 4:44 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11416">
<p>NICE &amp; HELP FULL tips…!! I appreciate your effort for posting such a informational daily LINUX activity</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-11420">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11420" title="Permalink to this comment" rel="nofollow">6</a></span>
<span class="comment_author">BalaC</span>
<span class="comment_time">June 12, 2009 at 5:54 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11420">
<p>Just came up at the right time</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11424">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11424" title="Permalink to this comment" rel="nofollow">7</a></span>
<span class="comment_author">ray</span>
<span class="comment_time">June 12, 2009 at 8:35 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11424">
<p>great tutorial, keep up good work</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-11427">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11427" title="Permalink to this comment" rel="nofollow">8</a></span>
<span class="comment_author">Jeroen</span>
<span class="comment_time">June 12, 2009 at 9:13 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11427">
<p>Thanks Ramesh.<br>
Concise and yet very useful, I especially like examples 7, 11 and 14.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11429">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11429" title="Permalink to this comment" rel="nofollow">9</a></span>
<span class="comment_author">Denny</span>
<span class="comment_time">June 12, 2009 at 9:55 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11429">
<p>Man, it just came in handy. Thank you very much.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-11456">
<span class="avatar"><a href="http://lindesk.com/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11456" title="Permalink to this comment" rel="nofollow">10</a></span>
<span class="comment_author"><a href="http://lindesk.com/" rel="external nofollow" class="url">Binny V A</a></span>
<span class="comment_time">June 13, 2009 at 4:24 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11456">
<p>Shameless plug: I have created a GUI <a href="http://www.openjs.com/scripts/jslibrary/demos/crontab.php" rel="nofollow">web interface to create crontab command</a>. I hope someone will find this useful.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11493">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11493" title="Permalink to this comment" rel="nofollow">11</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">June 14, 2009 at 9:57 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11493">
<p>One can use the English abbreviated day of the week in place of the numbers</p>
<p>0=Sun<br>
1=Mon<br>
2=Tue<br>
3=Wed<br>
4=Thu<br>
5=Fri<br>
6=Sat</p>
<p>so  </p>
<p>30 1 * * Mon-Fri   /sbin/poweroff</p>
<p>is equivalent to</p>
<p>30 1 * * 1-5       /sbin/poweroff</p>
<p>Will do a system shutdown at 1:30 AM on weekdays.  Which is easier to read?</p>
</div>
					</dd>
					<dt class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1" id="comment-11497">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11497" title="Permalink to this comment" rel="nofollow">12</a></span>
<span class="comment_author">Ramesh Natarajan</span>
<span class="comment_time">June 14, 2009 at 11:45 pm</span>

					</dt>
					<dd class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11497">
<p><strong>@Mahesh, Mihir, Anil, Shashank, Rajesh, Balac, Ray, Denny,</strong></p>
<p>Thanks a lot for your comment. I’m very glad you found this tutorial helpful.</p>
<p><code>&nbsp;</code><br>
<strong>@Jeroen,</strong></p>
<p>Yeah. “#7 – Running a job every x minutes” is something you may use it frequently. Regarding #14, is very convenient when you have lot of entries in your crontab, where you don’t need to give the full path.</p>
<p><code>&nbsp;</code><br>
<strong>@Binny,</strong></p>
<p>Your crontab code generator looks great. You just need to add the keyword option there. (i.e @yearly, @daily, @hourly, @reboot etc.,)</p>
<p><code>&nbsp;</code><br>
<strong>@Leslie,</strong></p>
<p>Thanks for pointing that out. You are so right. There is no doubt that Sun is much easier to read then 0. I’ve seen few sysadmins making the following mistakes:</p>
<p>1. Starting their 0-6 count with Monday. So, this makes 6 as sunday, which is wrong.<br>
2. Entering 7 for Sunday, thinking 1-7 is valid, which is wrong.</p>
<p><code>&nbsp;</code><br>
Your suggestion would help to avoid the above two mistakes. Thank you.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11932">
<span class="avatar"><a href="http://florida-medicare-insurance.com/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11932" title="Permalink to this comment" rel="nofollow">13</a></span>
<span class="comment_author"><a href="http://florida-medicare-insurance.com/" rel="external nofollow" class="url">Paul Mooney</a></span>
<span class="comment_time">June 25, 2009 at 2:14 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11932">
<p>Hello Ramesh,</p>
<p>i am trying to add a cronjob to the root file in my cron directory. so far my added cronjob: crmphonescript  is not working. Please see the last entry in the source code provided. any help will be great!</p>
<p>Filepath: var/spool/cron/root</p>
<p>Filename: root </p>
<p>source code:</p>
<pre>5,20,35,50 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue &gt; /dev/null 2&gt;&amp;1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
15 3 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
*/5 * * * * /usr/local/cpanel/bin/dcpumon &gt;/dev/null 2&gt;&amp;1
3 0 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check &amp;&amp; /usr/local/cpanel/bin/tail-check
0 6 * * * /scripts/exim_tidydb &gt; /dev/null 2&gt;&amp;1
*/1 * * * * /scripts/crmphonescript
</pre>
<p>Filepath: scripts/crmphonescript</p>
<p>Filename: crmphonescript </p>
<p>source code:</p>
<pre>#!/usr/bin/perl
$host="localhost";
$username="florida_florida";
$admin_password="*****";
$db_name="florida_joomla"; 

mysql_connect("$host", "$username", "$admin_password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

$sql="update jos_holder set id = 4 where id = 3";
$result=mysql_query($sql);
exit;
</pre>
</div>
					</dd>
					<dt class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1" id="comment-11944">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11944" title="Permalink to this comment" rel="nofollow">14</a></span>
<span class="comment_author">Ramesh Natarajan</span>
<span class="comment_time">June 25, 2009 at 9:56 pm</span>

					</dt>
					<dd class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11944">
<p><strong>@Paul,</strong><br>
Check the following:<br>
<code>&nbsp;</code><br>
- /var/log/cron file for any error messages.<br>
- put a debug message inside your shell script to see whether it really gets executed.<br>
- Put &gt; /tmp/script.log at the end of the cron entry for this script and debug it.<br>
- Put 2&gt; /tmp/error-script.log at the end of the cron entry for this script to see whether it writes any error message to the log file.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11961">
<span class="avatar"><a href="http://florida-medicare-insurance.com/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11961" title="Permalink to this comment" rel="nofollow">15</a></span>
<span class="comment_author"><a href="http://florida-medicare-insurance.com/" rel="external nofollow" class="url">Paul Mooney</a></span>
<span class="comment_time">June 26, 2009 at 5:45 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11961">
<p>Ramesh,</p>
<p>ok. i added the following to my command:</p>
<p>*/1 * * * * /scripts/crmphonescript &gt; /tmp/script.log</p>
<p>and added the following to my shell script:</p>
<p>$sql=”update jos_holder set id = 4 where id = 3″;<br>
$result=mysql_query($sql);<br>
if (!$result) {<br>
echo “could not execute script”<br>
}<br>
exit;</p>
<p>how do i now check for any error messages?</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-11979">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11979" title="Permalink to this comment" rel="nofollow">16</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">June 26, 2009 at 11:27 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-11979">
<p>Is there a command in linux to display a message in Gnome or KDE (and include the terminal).</p>
<p>Suppose I have a scheduled Cron job to do maintenance every Sunday night,</p>
<p>I would like to send out warning messages to display on Gnome, or KDE, as an alert that they may have to acknowledge.  (Example.  “System going off-line at 01:30am for maintenance, Please log off by then” )</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-11980">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-11980" title="Permalink to this comment" rel="nofollow">17</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">June 26, 2009 at 11:32 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-11980">
<p>I would have a crontab entry as follows</p>
<p>5,10,15,20,25,26,27,28,29 1 * * 0  Command to send warning messages to users on GNOME OR KDE</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-12101">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-12101" title="Permalink to this comment" rel="nofollow">18</a></span>
<span class="comment_author">shankar</span>
<span class="comment_time">June 30, 2009 at 12:37 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-12101">
<p>good</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-12696">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-12696" title="Permalink to this comment" rel="nofollow">19</a></span>
<span class="comment_author">vanraj</span>
<span class="comment_time">July 14, 2009 at 5:35 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-12696">
<p>this is really good effort and easy to understand.<br>
thank you.</p>
</div>
					</dd>
					<dt class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1" id="comment-12715">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-12715" title="Permalink to this comment" rel="nofollow">20</a></span>
<span class="comment_author">Ramesh Natarajan</span>
<span class="comment_time">July 14, 2009 at 9:46 pm</span>

					</dt>
					<dd class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-12715">
<p><strong>@Paul,</strong> As we discussed over email, following are few suggestions.</p>
<p>- Check the content of the /tmp/script.log<br>
- The mysql commands you’ve given are php related. But you had #!/usr/bin/perl as the 1st line in your script. Try changing it to php (or) change the php-mysql functions to perl-mysql functions.</p>
<p><strong>@Leslie,</strong> Following are some suggestions, which you can explore further.</p>
<p>1. Use notify-send “title” “body” to display pop-up in gnome desktop</p>
<pre>Example Usage:
# full-backup.sh ; notify-send "Backup completed"
</pre>
<p>2. You can also use xmessage to display pop-up on desktop. </p>
<pre># xmessage -file /path/of/file/name/message.txt
</pre>
<p><strong>@Shankar, @Vanraj,</strong> Thanks for your kind words. I’m very glad that you found this article helpful.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-12970">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-12970" title="Permalink to this comment" rel="nofollow">21</a></span>
<span class="comment_author">PaulM</span>
<span class="comment_time">July 21, 2009 at 1:16 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-12970">
<p>Great Cron tutorial. One request about this website though….how about a “Printer Friendly” link at the bottom of these tutorials? Im an old school sysadmin and I keep an “Oh Crap” book…..a hard copy of important info and tips and tricks that I can refer to when the excrement hits the oscillating ventilation device if you know what I mean.<br>
Printer Friendly pages would be a nice touch.</p>
</div>
					</dd>
					<dt class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1" id="comment-13167">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-13167" title="Permalink to this comment" rel="nofollow">22</a></span>
<span class="comment_author">Ramesh Natarajan</span>
<span class="comment_time">July 25, 2009 at 12:34 am</span>

					</dt>
					<dd class="comment byuser comment-author-admin odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-13167">
<p>@PaulM,</p>
<p>I’ve added your request about “Printer Friendly” link in my list of to-dos. Thanks a lot for bringing that to my attention. It’s definitely a good idea.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-13752">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-13752" title="Permalink to this comment" rel="nofollow">23</a></span>
<span class="comment_author">mittu</span>
<span class="comment_time">August 5, 2009 at 5:21 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-13752">
<p>thank u</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-15880">
<span class="avatar"><a href="http://www.planetmy.com/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-15880" title="Permalink to this comment" rel="nofollow">24</a></span>
<span class="comment_author"><a href="http://www.planetmy.com/" rel="external nofollow" class="url">Planet Malaysia</a></span>
<span class="comment_time">August 26, 2009 at 3:44 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-15880">
<p>You can specific different time zone for different cronjob.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-18383">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-18383" title="Permalink to this comment" rel="nofollow">25</a></span>
<span class="comment_author">Praveen</span>
<span class="comment_time">October 2, 2009 at 8:12 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-18383">
<p>Hey Ramesh,</p>
<p>I have a question for you. As a sys-admin, I am sure you will have bunch of things in cron. Do you use any apps to visualize these entries? It would be really helpful to see Cron entries on a calendar. </p>
<p>Do you know of any such OSS tool?</p>
<p>Praveen</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-18801">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-18801" title="Permalink to this comment" rel="nofollow">26</a></span>
<span class="comment_author">Don</span>
<span class="comment_time">October 6, 2009 at 2:55 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-18801">
<p>Hi,</p>
<p>Great article. Is it possible to schedule a job for the first Saturday of the month (every month)? If there is I’m having trouble figuring out how to do it.</p>
<p>Thanks<br>
Don</p>
</div>
					</dd>
					<dt class="comment byuser comment-author-sathiya bypostauthor even thread-even depth-1" id="comment-18833">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-18833" title="Permalink to this comment" rel="nofollow">27</a></span>
<span class="comment_author">SathiyaMoorthy</span>
<span class="comment_time">October 7, 2009 at 12:48 am</span>

					</dt>
					<dd class="comment byuser comment-author-sathiya bypostauthor even thread-even depth-1">
<div class="format_text" id="comment-body-18833">
<p>@Don</p>
<p>1 1 1-7 * 6 CMD</p>
<p>Above should do the hack, but not tested [ let us know the results ].</p>
<p>Explanation: At 1st minute of 1st hour, of 1-7th day of month, at every month. And only on 6th day of week which is Saturday. </p>
<p>On 1-7th of every month, only one Saturday can come.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-18916">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-18916" title="Permalink to this comment" rel="nofollow">28</a></span>
<span class="comment_author">Don</span>
<span class="comment_time">October 7, 2009 at 11:23 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-18916">
<p>@SathiyaMoorthy</p>
<p>Thanks, I’ll give it a try. I’ll play with the settings so I can try it for this weekend so we won’t have to wait till next month to see if it works.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-19031">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-19031" title="Permalink to this comment" rel="nofollow">29</a></span>
<span class="comment_author">Don</span>
<span class="comment_time">October 9, 2009 at 10:22 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-19031">
<p>@SathiyaMoorthy</p>
<p>It didn’t work <img src="./Linux Crontab  15 Awesome Cron Job Examples_files/icon_sad.gif" alt=":-(" class="wp-smiley"> </p>
<p>I set it to 0 12 1-11 * 4 cmd and it lauched yesterday (Thursday) which it was supposed to do but it also launched today (Friday) which it was not supposed to do.</p>
<p>I guess I could schedule it to run every Saturday and in the script check to see if the day-of-month is less that 8. If so run, if not exit.</p>
<p>Thanks<br>
Don</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-19519">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-19519" title="Permalink to this comment" rel="nofollow">30</a></span>
<span class="comment_author">Kunal</span>
<span class="comment_time">October 14, 2009 at 9:06 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-19519">
<p>Very nicely explained . Thanks for explaining all major usage patterns in a single article. </p>
<p>Rgds</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-19860">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-19860" title="Permalink to this comment" rel="nofollow">31</a></span>
<span class="comment_author">vks</span>
<span class="comment_time">October 19, 2009 at 7:14 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-19860">
<p>can any body explain how to run cron jobs in /etc/crontab</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-23055">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-23055" title="Permalink to this comment" rel="nofollow">32</a></span>
<span class="comment_author">ACE</span>
<span class="comment_time">November 20, 2009 at 1:37 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-23055">
<p>Does anybody knows how to setup a cron job to run every other week on any of the week days.</p>
<p>For example: I need to run a job at 10 AM on Monday but every other Monday.</p>
<p>I tried this and did not work:</p>
<p>00 10 */14 * 1 /my command</p>
<p>Thanks,</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-23350">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-23350" title="Permalink to this comment" rel="nofollow">33</a></span>
<span class="comment_author">Sharad</span>
<span class="comment_time">November 23, 2009 at 6:37 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-23350">
<p>Very informative…and superb way to demonstrate daily usages…</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-25245">
<span class="avatar"><a href="http://www.spiderlinks.info/forum" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-25245" title="Permalink to this comment" rel="nofollow">34</a></span>
<span class="comment_author"><a href="http://www.spiderlinks.info/forum" rel="external nofollow" class="url">Salsan Jose E</a></span>
<span class="comment_time">December 7, 2009 at 10:33 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-25245">
<p>How to set up one time Cron Job ?</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-25638">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-25638" title="Permalink to this comment" rel="nofollow">35</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">December 10, 2009 at 8:37 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-25638">
<p>Just fill out the line with </p>
<p>mm  hh  dayofmonth  monthyear  dayofweek       command</p>
<p>it will work on that day, </p>
<p>30 1     31      5        Mon         echo  “Do this command in a year where May 31 is a Monday”</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-28184">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-28184" title="Permalink to this comment" rel="nofollow">36</a></span>
<span class="comment_author">siegfried</span>
<span class="comment_time">January 3, 2010 at 6:10 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-28184">
<p>for one off jobs use the ‘at’ command. cron actually runs both ‘at’ and ‘cron’ jobs ( the ‘c’ and ‘a’ in the log file ). at is very flexible wrt scheduling, and at copies your current environment before running the job so no more anooying erros with your profile, path, etc. also you don’t have to remember to remove your one off job from your crontab, or take that extra small risk of making a mistake each time you edit your crontab. btw, to reduce the chance of making a mistake while edting your crontab, consider doing something like : </p>
<p>crontab -l &gt; crontab.old<br>
cp crontab.old crontab.new<br>
vi crontab.new<br>
diff crontab.old crontab.new<br>
crontab crontab.new</p>
<p>a good habit to get into esp. if you want to minimise the chance of an error in a production environment.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-28555">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-28555" title="Permalink to this comment" rel="nofollow">37</a></span>
<span class="comment_author">guntis</span>
<span class="comment_time">January 6, 2010 at 1:18 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-28555">
<p>excellent!!!<br>
have never seen better manual</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-36442">
<span class="avatar"><a href="http://www.comit.ch/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-36442" title="Permalink to this comment" rel="nofollow">38</a></span>
<span class="comment_author"><a href="http://www.comit.ch/" rel="external nofollow" class="url">sofasurfer</a></span>
<span class="comment_time">February 25, 2010 at 7:09 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-36442">
<p>@Don<br>
@SathiyaMoorthy</p>
<p>To execute a script on some days of a week and only between some days of a month you can do it this way:</p>
<p># Nur am Montag (1) oder am Donnerstag (4)<br>
10 19 2-27 * *  if [ "$(date +\%u)" = "1" ] || [ "$(date +\%u)" = "4" ] ; then ./yourscript.sh ; fi</p>
<p>This here will not work !!!<br>
10 19 2-27 * 1,4</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-37882">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-37882" title="Permalink to this comment" rel="nofollow">39</a></span>
<span class="comment_author">Ashwin Raj</span>
<span class="comment_time">March 5, 2010 at 11:31 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-37882">
<p>Really nice manual. Is there any way to set up a cron job to run a script Monday through Friday, every 1 minute starting at 7:00AM and ending at 6:30PM? I am wondering if this is possible just with the minute/hour/date/month/day specifiers. I saw an example in one of the comment posts which used a if-then conditional execution of a script. Is that the only way to go.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-37960">
<span class="avatar"><a href="http://www.comit.ch/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-37960" title="Permalink to this comment" rel="nofollow">40</a></span>
<span class="comment_author"><a href="http://www.comit.ch/" rel="external nofollow" class="url">sofasurfer</a></span>
<span class="comment_time">March 6, 2010 at 1:07 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-37960">
<p>@Ashwin Raj<br>
Monday through Friday, every 1 minute starting at 7:00AM and ending at 6:30PM?</p>
<p>Try this one with two entries, but with no guarantee.<br>
*/1 7-17 * * 1-5 yourscript.sh<br>
0-30/1 18 * * 1-5 yourscript.sh<br>
Combination of day of month and day of week parameter is treaten as OR condition by crontab and therefor I used an if statement to solve this situation.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-44451">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-44451" title="Permalink to this comment" rel="nofollow">41</a></span>
<span class="comment_author">Bhanu</span>
<span class="comment_time">April 26, 2010 at 12:49 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-44451">
<p>Hi Ramesh,<br>
This is Bhanu new for the Linux platform planning to give certification.<br>
I read your module.Its excellent ,I want to know about the monthly cron job u have just mentioned about that but u didnt mnetion aboout the syntax is this right </p>
<p>0 0 1 *  * cmd.<br>
is this right?<br>
Thnx</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-46507">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-46507" title="Permalink to this comment" rel="nofollow">42</a></span>
<span class="comment_author">bucu</span>
<span class="comment_time">May 10, 2010 at 10:14 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-46507">
<p>* * * * * history &gt; ~/Desctop/file<br>
I tryied to make a backup of history, but this way is not working.<br>
Cron is creating a file, but the date isn’t getting there.<br>
Help me, thanks and cheers</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-46547">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-46547" title="Permalink to this comment" rel="nofollow">43</a></span>
<span class="comment_author">Kate</span>
<span class="comment_time">May 10, 2010 at 6:59 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-46547">
<p>I can set a cron to run every 5 minutes from 8pm – 11pm (20-23), but what I can’t do is set one to run every 5 minutes from 11:pm-midnight. (23-00)</p>
<p>How do you set a cron to run every 5 minutes the last hour of the day?<br>
Any help would be appreciated.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-50013">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-50013" title="Permalink to this comment" rel="nofollow">44</a></span>
<span class="comment_author">Amit Dixit</span>
<span class="comment_time">June 14, 2010 at 1:33 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-50013">
<p>How do you set a cron to run every 5 minutes the last hour of the day?</p>
<p>Try this:- */5 23-00 * * * command</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-53778">
<span class="avatar"><a href="http://linuxcrontab/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-53778" title="Permalink to this comment" rel="nofollow">45</a></span>
<span class="comment_author"><a href="http://linuxcrontab/" rel="external nofollow" class="url">kamalesh</a></span>
<span class="comment_time">July 13, 2010 at 7:01 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-53778">
<p>very very helpful to freshers good job</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-57535">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-57535" title="Permalink to this comment" rel="nofollow">46</a></span>
<span class="comment_author">radha</span>
<span class="comment_time">August 4, 2010 at 8:11 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-57535">
<p>How to set a crontab a specific one year i.e. from 2010 Aug 5th to 2011 Aug 4th?</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-59288">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-59288" title="Permalink to this comment" rel="nofollow">47</a></span>
<span class="comment_author">Elgin</span>
<span class="comment_time">August 15, 2010 at 11:22 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-59288">
<p>How do I write a shell script to automate logging user login activity to detect unauthorized remote access attempts.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-62189">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-62189" title="Permalink to this comment" rel="nofollow">48</a></span>
<span class="comment_author">Anonymous</span>
<span class="comment_time">September 6, 2010 at 7:25 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-62189">
<p>very useful information about cron.thanks…</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-62568">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-62568" title="Permalink to this comment" rel="nofollow">49</a></span>
<span class="comment_author">g</span>
<span class="comment_time">September 9, 2010 at 1:02 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-62568">
<p>hey, Ramesh…</p>
<p>I got some trouble for doing crontab…<br>
It seems my cron successfully schedule but the command didnt run.</p>
<p>what’s the possibility my schedule didnt work eh?</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-62762">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-62762" title="Permalink to this comment" rel="nofollow">50</a></span>
<span class="comment_author">Graham</span>
<span class="comment_time">September 10, 2010 at 6:34 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-62762">
<p>Hi. Thank you for your article, but I really hope you can help with a problem I’m having. I have the following in my crontab : */1 * * * * DISPLAY=:0.0 fbsetbg -r /home/graham/Pictures/Wallpapers<br>
But that also changes the login background. Is there a way to stop cron from starting until AFTER I login?</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-62787">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-62787" title="Permalink to this comment" rel="nofollow">51</a></span>
<span class="comment_author">g</span>
<span class="comment_time">September 10, 2010 at 12:08 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-62787">
<p>hey graham,</p>
<p>Try to execute this one to stop cron</p>
<p>[quote]<br>
$&gt; crontab -u userName -r<br>
[/quote]</p>
<p>good luck!</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-62805">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-62805" title="Permalink to this comment" rel="nofollow">52</a></span>
<span class="comment_author">Graham</span>
<span class="comment_time">September 10, 2010 at 2:57 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-62805">
<p>Hi g. Sorry, but i thought i should let you know i’ve discovered that i don’t get same problem with KDM (while using lucid) but on the other hand, i FINALLY managed to downgrade gdm to 2.20 and theres no problems, so it might be a plymouth problem?</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-62874">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-62874" title="Permalink to this comment" rel="nofollow">53</a></span>
<span class="comment_author">g</span>
<span class="comment_time">September 11, 2010 at 3:59 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-62874">
<p>not sure. probably yes. <img src="./Linux Crontab  15 Awesome Cron Job Examples_files/icon_biggrin.gif" alt=":D" class="wp-smiley"> </p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-64019">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-64019" title="Permalink to this comment" rel="nofollow">54</a></span>
<span class="comment_author">p</span>
<span class="comment_time">September 22, 2010 at 5:49 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-64019">
<p>Hi,</p>
<p>in my environment i use crontab file to import cron’s table. it’s working great, but sometimes file has some syntax errors. is there any possibility to check file before importing it (of course, done automatically, not by hand). </p>
<p>regards,<br>
p.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-64035">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-64035" title="Permalink to this comment" rel="nofollow">55</a></span>
<span class="comment_author">g</span>
<span class="comment_time">September 22, 2010 at 8:54 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-64035">
<p>never heard for it.<br>
Syntax error is human made mistake.<br>
Means all are in manual.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-64848">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-64848" title="Permalink to this comment" rel="nofollow">56</a></span>
<span class="comment_author">Jerry</span>
<span class="comment_time">September 30, 2010 at 9:06 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-64848">
<p>I just wanted to mention that Linux (well at least the RH based versions, not sure about Deb.) has 3 different cron methods.  They can get confusing to someone who comes over from Unix (like me).</p>
<p>1) user defined cronjobs. This is the one you can use the crontab -l, crontab -e, etc. for.  The crontab files with crontab formatted entries are stored in /var/spool/cron.<br>
2) For root cron jobs, there’s the file /etc/crontab.  Another with crontab formatted entries.  When you use the crontab commands when you are root, like crontab -l, you will NOT see the entries in this file, you will see the entries in /var/spool/cron/root.<br>
3)  The last is another for root only. If you look in the file /etc/crontab, you’ll it has crontab formatted entries pointing to these directories in /etc:<br>
   cron.hourly<br>
   cron.daily<br>
   cron.monthly<br>
   cron.weekly<br>
- each of those directories contain regular script files.  Drop a script in one of those, and it will get executed when /etc/crontab call it.<br>
Thanks&gt;</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-69343">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-69343" title="Permalink to this comment" rel="nofollow">57</a></span>
<span class="comment_author">manish</span>
<span class="comment_time">November 10, 2010 at 7:38 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-69343">
<p>these are very helpful for me for my project.<br>
sir could u give me suggesion how to use it with shared memory<br>
thank u sir/mam.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-70026">
<span class="avatar"><a href="http://www.thegeekstuff.com/dev/null" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-70026" title="Permalink to this comment" rel="nofollow">58</a></span>
<span class="comment_author"><a href="http://www.thegeekstuff.com/dev/null" rel="external nofollow" class="url">Wuzzy</a></span>
<span class="comment_time">November 16, 2010 at 5:25 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-70026">
<p>htop is a good alternative to top. It is quite easier to use, allows to scroll the process list horizontally and vertically and also a tree-view of the processes.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-74529">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-74529" title="Permalink to this comment" rel="nofollow">59</a></span>
<span class="comment_author">pradeep</span>
<span class="comment_time">December 22, 2010 at 4:49 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-74529">
<p>Very nice.. easy to understand 4 begginers….</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-75203">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-75203" title="Permalink to this comment" rel="nofollow">60</a></span>
<span class="comment_author">Sudhir Sinha</span>
<span class="comment_time">December 25, 2010 at 5:14 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-75203">
<p>cron Job for every 2nd sunday</p>
<p>* * 8-14 * * if [ `date +\%a` = "Sat" ]; then /apps/scripts/test.ksh; fi &gt;&gt; testlog</p>
<p>These will not work:-<br>
* * 8-14 * 0 if [ `date +\%a` = "Sat" ]; then /apps/scripts/test.ksh; fi &gt;&gt; testlog<br>
or<br>
* * 8-14 * 0 /apps/scripts/test.ksh &gt;&gt; testlog</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-76705">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-76705" title="Permalink to this comment" rel="nofollow">61</a></span>
<span class="comment_author">karthik</span>
<span class="comment_time">January 1, 2011 at 9:03 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-76705">
<p>It helped me alot..</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-80028">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-80028" title="Permalink to this comment" rel="nofollow">62</a></span>
<span class="comment_author">Spektator</span>
<span class="comment_time">January 19, 2011 at 11:14 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-80028">
<p>I came to a situation where the same user needs to run scripts for 2 environment settings.<br>
Can I just set PATH twice in the cron file, first at the beginning for the first environment and then in the middle for the rest of the scripts belonging to the second environment?<br>
Something like this:<br>
PATH=path1…<br>
0 * * * 0 sunday_script<br>
0 0 * * 1 monday_midnight command<br>
PATH=path2…<br>
30 12 * * * noon_script every day (second environment)</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-83707">
<span class="avatar"><a href="http://yahoo/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-83707" title="Permalink to this comment" rel="nofollow">63</a></span>
<span class="comment_author"><a href="http://yahoo/" rel="external nofollow" class="url">Roshan Munavar syed</a></span>
<span class="comment_time">February 3, 2011 at 9:25 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-83707">
<p>hai ramesh<br>
I have a doubt about how to send e-mail for particular user for process completed,if a process completed 35% or 45% we need to send a mail for a root user or other user<br>
please explain this critical situation,i want clarification about this as soon as possible<br>
i want explain about this sending e-mail &amp; checking process percentage[%] give command to find that<br>
i hope soon you will reply for me<br>
RMS</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-83887">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-83887" title="Permalink to this comment" rel="nofollow">64</a></span>
<span class="comment_author">Marcelo</span>
<span class="comment_time">February 4, 2011 at 11:56 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-83887">
<p>Thanks, very useful tips</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-92827">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-92827" title="Permalink to this comment" rel="nofollow">65</a></span>
<span class="comment_author">Ziad</span>
<span class="comment_time">March 16, 2011 at 8:14 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-92827">
<p>Great examples</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-96280">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-96280" title="Permalink to this comment" rel="nofollow">66</a></span>
<span class="comment_author">Gowtham</span>
<span class="comment_time">April 5, 2011 at 10:44 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-96280">
<p>How to schedule a Cron job twice in a day ? I need to schedule the job every day exactly at 3:45 AM and 6:30 AM. Do I need to Create two cronjob’s or single cronjob will be enough for this?</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-116211">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-116211" title="Permalink to this comment" rel="nofollow">67</a></span>
<span class="comment_author">Javier</span>
<span class="comment_time">July 5, 2011 at 11:14 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-116211">
<p>I need to know how to run a one time specific date Cron Job.<br>
say I needed to remove or move a directory on 6/14/2012. How do you tell it to run in 2012 or any other specified date &amp; year?</p>
<p>thanks.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-116352">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-116352" title="Permalink to this comment" rel="nofollow">68</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">July 6, 2011 at 7:09 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-116352">
<p>Please review the crontab table. Therein you will find<br>
Field 	Description 	Allowed Value<br>
MIN 	Minute field 	0 to 59<br>
HOUR 	Hour field 	0 to 23<br>
DOM 	Day of Month 	1-31<br>
MON 	Month field 	1-12<br>
DOW 	Day Of Week 	0-6<br>
CMD 	Command 	Any command to be executed.</p>
<p>Using the combination of dow, and combination of month and day of month and day of week, you can specifiy annual events, with quite precision.<br>
The nth day of the month falls on a different day every year. Make use of that information</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-116560">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-116560" title="Permalink to this comment" rel="nofollow">69</a></span>
<span class="comment_author">Javier</span>
<span class="comment_time">July 7, 2011 at 5:08 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-116560">
<p>O.K.<br>
This is the command that I am trying to run.</p>
<p>rm -r public_html/file_name<br>
I need to know exactly how to set it up say to run at this exact date of June 4, 2012</p>
<p>can someone please set it up so that I can visually see it.</p>
<p>thanks for all of your time &amp; help</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-116853">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-116853" title="Permalink to this comment" rel="nofollow">70</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">July 9, 2011 at 6:48 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-116853">
<p>june 4th is a Monday<br>
Setup the crontab to recognize  the day as Monday, the month as June, and set the time that you want it to run,  June4 on a Monday only occurs once in about 7 years.</p>
<p>If you cannot do this, then ask someone in a college or programming school.</p>
<p>Read the table above about programming the crontab.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-119612">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-119612" title="Permalink to this comment" rel="nofollow">71</a></span>
<span class="comment_author">Aneesh Hamza</span>
<span class="comment_time">July 27, 2011 at 12:52 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-119612">
<p>Hi Javier,<br>
Looks like you want to run a job only one time and instead of cron you can use the at command to run any job at a scheduled time.  However, at will only run the job once, unless the job reschedules itself.  at is invoked from the command line or from within a shell script.  The basic command is:<br>
at  &lt; FILE<br>
where FILE is a shell script of some sort and<br>
 can be in several forms, such as 12 or 24 hour clock time, a date and time, an offset to the current time (e.g., now + 5 minutes) or similar.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-119742">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-119742" title="Permalink to this comment" rel="nofollow">72</a></span>
<span class="comment_author">Javier Cazares</span>
<span class="comment_time">July 28, 2011 at 9:08 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-119742">
<p>Thanks for your time &amp; help.<br>
@ Aneesh.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-120426">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-120426" title="Permalink to this comment" rel="nofollow">73</a></span>
<span class="comment_author">Anonymous</span>
<span class="comment_time">August 2, 2011 at 3:41 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-120426">
<p>Based on the manual here, it’s called MAILTO, not just MAIL.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-122480">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-122480" title="Permalink to this comment" rel="nofollow">74</a></span>
<span class="comment_author">TK Nallappan</span>
<span class="comment_time">August 17, 2011 at 8:50 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-122480">
<p>Hi All,</p>
<p>You can edit the user jobs from back end. But you should have the root user privilege. The user cronjobs will be located at /var/spool/cron/username</p>
<p># cat /var/spool/cron/tknalla<br>
* * * * * /usr/local/bin/php /home/tknalla/test.php</p>
<p># vi /var/spool/cron/tknalla</p>
<p>Instead of running the command “crontab -u tknalla -e”, you can straight away edit this file and can save it.</p>
<p># crontab -u tknalla -l<br>
0 0 * * * /usr/local/bin/php /home/tknalla/test.php</p>
<p>Thank you guys</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-123053">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-123053" title="Permalink to this comment" rel="nofollow">75</a></span>
<span class="comment_author">Pratk</span>
<span class="comment_time">August 20, 2011 at 10:00 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-123053">
<p>Its very useful….osm work…</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-125821">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-125821" title="Permalink to this comment" rel="nofollow">76</a></span>
<span class="comment_author">Tim</span>
<span class="comment_time">September 5, 2011 at 6:39 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-125821">
<p>There is a typo on number 14, you have crontab -l to edit the crontab file. It should be crontab -e</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-125986">
<span class="avatar"><a href="http://www.itbms.biz/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-125986" title="Permalink to this comment" rel="nofollow">77</a></span>
<span class="comment_author"><a href="http://www.itbms.biz/" rel="external nofollow" class="url">Leslie Satenstein</a></span>
<span class="comment_time">September 6, 2011 at 9:17 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-125986">
<p>The example in paragraph 14 is correct as is.  The author is not trying to edit the crontab, he/she is using the -l to show you the contents of the crontab. And you are correct,  -e would be used if you wanted to edit it.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-125988">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-125988" title="Permalink to this comment" rel="nofollow">78</a></span>
<span class="comment_author">Tim</span>
<span class="comment_time">September 6, 2011 at 10:58 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-125988">
<p>Oops, my bad.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-126429">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-126429" title="Permalink to this comment" rel="nofollow">79</a></span>
<span class="comment_author">S.Senthil kumar</span>
<span class="comment_time">September 9, 2011 at 10:21 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-126429">
<p>How do we schedule a job running for every 45 mins all day?</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-126822">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-126822" title="Permalink to this comment" rel="nofollow">80</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">September 11, 2011 at 7:00 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-126822">
<p>S.Senthil</p>
<p>Please look at posting number 5</p>
<p>*/10 * * * * /home/ramesh/debian/bin/check-disk-space<br>
Change the /10 to /45<br>
and change the path to your job.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-135809">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-135809" title="Permalink to this comment" rel="nofollow">81</a></span>
<span class="comment_author">Amit Singh</span>
<span class="comment_time">October 29, 2011 at 6:50 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-135809">
<p>liked the article.</p>
<p>Mail example didnt work. It works fine if i make it MAILTO instead of MAIL as mentioned in the example.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-137708">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-137708" title="Permalink to this comment" rel="nofollow">82</a></span>
<span class="comment_author">kuldeep</span>
<span class="comment_time">November 8, 2011 at 3:00 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-137708">
<p>really a gud job .. every point understandable….</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-147313">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-147313" title="Permalink to this comment" rel="nofollow">83</a></span>
<span class="comment_author">Arul</span>
<span class="comment_time">November 29, 2011 at 1:43 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-147313">
<p>We need to schedule our script with crontab. Our script contains our own env file to initialize some env variables. We got error while running the crontab. Error is “Variable not initialised from .env file”. Could u please let me know how to use the env variables in the crontab?</p>
<p>Thanks in advance for your assistance…</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-154008">
<span class="avatar"><a href="http://www.gmail.com/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-154008" title="Permalink to this comment" rel="nofollow">84</a></span>
<span class="comment_author"><a href="http://www.gmail.com/" rel="external nofollow" class="url">umesh</a></span>
<span class="comment_time">December 12, 2011 at 2:20 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-154008">
<p>Thank you so much..</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-160136">
<span class="avatar"><a href="http://www.herecare.com/" rel="nofollow"></a></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-160136" title="Permalink to this comment" rel="nofollow">85</a></span>
<span class="comment_author"><a href="http://www.herecare.com/" rel="external nofollow" class="url">Soni Peterson</a></span>
<span class="comment_time">December 22, 2011 at 9:37 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-160136">
<p>There were few cron jobs that were rnning on my machine and i was cheking them by using<br>
crontab -l<br>
command and was getting no cron job mesage<br>
this articles help me and give me understanding of cron jobs and also I have ffind them<br>
Thanx very much</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-173246">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-173246" title="Permalink to this comment" rel="nofollow">86</a></span>
<span class="comment_author">Jamie</span>
<span class="comment_time">January 5, 2012 at 4:28 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-173246">
<p>Great article – I’ve come back to it a few times since you published it.</p>
<p>I’m trying to schedule a cron job to run when it is a particular day of the week AND a particular day of the month. (e.g. every Friday 25th).</p>
<p>If I specify both the day of week and date of month in crontab then it seems to take the OR of these two criteria, rather than the AND. (so would run every friday, and every 25th)</p>
<p>Is there another way I can do this? It seems wrong that it would OR the commands rather than AND them – if I wanted to OR them I could just add them as two separate lines in crontab.</p>
<p>Grateful for any tips.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-173855">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-173855" title="Permalink to this comment" rel="nofollow">87</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">January 6, 2012 at 8:34 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-173855">
<p>Jamie,  You are right, it is an or situation.  However, you may use a bash shell command with date to determine if the day is a Friday,  Set up the crontab entry to execute every 25th of the month, and in the bash shell test for Friday.<br>
date %a  gives 3 letter day of week,  date %u tells you the day number of the week.<br>
I would use the day number with an if, or if you want different actions based on the day of the week, I would use date %u with the day number as an entry to a switch statement.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-174343">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-174343" title="Permalink to this comment" rel="nofollow">88</a></span>
<span class="comment_author">Jamie</span>
<span class="comment_time">January 7, 2012 at 7:30 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-174343">
<p>Thanks for the tip Leslie. I ended up installing fcron, which when given two criteria, takes the AND of them as you might expect.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-200781">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-200781" title="Permalink to this comment" rel="nofollow">89</a></span>
<span class="comment_author">ananthraj</span>
<span class="comment_time">February 23, 2012 at 3:04 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-200781">
<p>How to use crone tab to know the login details (who logged into  the system or server (locally or remotely))and send the login details mail to any particular mailid</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-201484">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-201484" title="Permalink to this comment" rel="nofollow">90</a></span>
<span class="comment_author">milan</span>
<span class="comment_time">February 25, 2012 at 10:57 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-201484">
<p>I need some help .. I am doing a cron job and I am having trouble with setuid and log files.<br>
I want to redirect the setuid log files to /var/log/rootadmin and how do i do that. rite now the log files are in /var/log/messages but i want it to be in /var/log/rootadmin . so far this is what i have </p>
<p>*/1 * * * * find / -mount -perm /4000 -type f 2&gt;/dev/null&gt; /root/task1.$(date + \%d-\%m-\%Y) | logger -i -p user.info</p>
<p>A help would be really appreciated thank you.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-207371">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-207371" title="Permalink to this comment" rel="nofollow">91</a></span>
<span class="comment_author">Gaurav Sood</span>
<span class="comment_time">March 10, 2012 at 1:44 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-207371">
<p>Is it possible to launch an application using crontab?</p>
<p>If yes, please let me know how to do it?</p>
<p>Example: -</p>
<p>40 14 * * *  xterm -e ping 4.2.2.2</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-207632">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-207632" title="Permalink to this comment" rel="nofollow">92</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">March 10, 2012 at 10:19 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-207632">
<p>GaUrav Sood<br>
That is what crontab is for.  Your application should be able to be run using the command line.  The space to the right after the time and day selections would contain that command.</p>
<p>Sometimes you need to run a gui application.  In that case, it is a command to launch the gui loader.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-207874">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-207874" title="Permalink to this comment" rel="nofollow">93</a></span>
<span class="comment_author">Gaurav Sood</span>
<span class="comment_time">March 11, 2012 at 12:15 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-207874">
<p>Leslie,</p>
<p>Thanks for the reply.</p>
<p>“xterm -e ping 4.2.2.2″ command works fine from the command line.</p>
<p>However, when we set the command “40 14 * * *  xterm -e ping 4.2.2.2″ under crontab -e, nothing happens.</p>
<p>Any ideas?</p>
<p>Thanks in advance!</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-209430">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-209430" title="Permalink to this comment" rel="nofollow">94</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">March 15, 2012 at 9:58 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-209430">
<p>Enter the entire path . as   /usr/bin/xterm -e ping ….</p>
<p>whereis xxx will identify the path to xxx</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-211198">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-211198" title="Permalink to this comment" rel="nofollow">95</a></span>
<span class="comment_author">vilas</span>
<span class="comment_time">March 20, 2012 at 11:35 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-211198">
<p>please tell me the crontab entries for running jobs in every 2 hour…<br>
* */2 * * *  root /…………….  is it OK?</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-211249">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-211249" title="Permalink to this comment" rel="nofollow">96</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">March 20, 2012 at 2:39 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-211249">
<p>When in doubt about a crontab entry do the following: Showing an example…</p>
<p>8 */2 * * *  date &gt;&gt; /home/mylogon/crontab.test</p>
<p>The only thing that happens is you will fill up a file with dates every */2 hours.</p>
<p>If that works, then the next step is to include the full path or have a path statement in the crontab.   </p>
<p>For more information close at hand, do either or both   Man crontab   or Info crontab.</p>
<p>Man and Info are on your system.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-213276">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-213276" title="Permalink to this comment" rel="nofollow">97</a></span>
<span class="comment_author">Anonymous</span>
<span class="comment_time">March 25, 2012 at 8:20 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-213276">
<p>Leslie,</p>
<p>Sorry for replying late.</p>
<p>As per the suggested change still it’s not working.<br>
##########################BEGIN############################<br>
gasood@gasood-Kubuntu:~$ service cron status<br>
cron start/running, process 975<br>
gasood@gasood-Kubuntu:~$ pgrep cron<br>
975<br>
4503<br>
4518<br>
gasood@gasood-Kubuntu:~$ crontab -l<br>
# Edit this file to introduce tasks to be run by cron.<br>
#<br>
# Each task to run has to be defined through a single line<br>
# indicating with different fields when the task will be run<br>
# and what command to run for the task<br>
#<br>
# To define the time you can provide concrete values for<br>
# minute (m), hour (h), day of month (dom), month (mon),<br>
# and day of week (dow) or use ‘*’ in these fields (for ‘any’).#<br>
# Notice that tasks will be started based on the cron’s system<br>
# daemon’s notion of time and timezones.<br>
#<br>
# Output of the crontab jobs (including errors) is sent through<br>
# email to the user the crontab file belongs to (unless redirected).<br>
#<br>
# For example, you can run a backup of all your user accounts<br>
# at 5 a.m every week with:<br>
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/<br>
#<br>
# For more information see the manual pages of crontab(5) and cron(8)<br>
#<br>
# m h  dom mon dow   command<br>
13 22 * * * /usr/bin/xterm -e ping 4.2.2.2</p>
<p>#37 14 * * * xterm -e ping 4.2.2.2<br>
#* * * * * ./getping.sh &gt;&gt; website7.html<br>
gasood@gasood-Kubuntu:~$ </p>
<p>##########################END##############################</p>
<p>Thanks in advance!</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-213277">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-213277" title="Permalink to this comment" rel="nofollow">98</a></span>
<span class="comment_author">Gaurav Sood</span>
<span class="comment_time">March 25, 2012 at 8:21 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-213277">
<p>Leslie,</p>
<p>Sorry for replying late.</p>
<p>As per the suggested change still it’s not working.<br>
##########################BEGIN############################<br>
gasood@gasood-Kubuntu:~$ service cron status<br>
cron start/running, process 975<br>
gasood@gasood-Kubuntu:~$ pgrep cron<br>
975<br>
4503<br>
4518<br>
gasood@gasood-Kubuntu:~$ crontab -l<br>
# Edit this file to introduce tasks to be run by cron.<br>
#<br>
# Each task to run has to be defined through a single line<br>
# indicating with different fields when the task will be run<br>
# and what command to run for the task<br>
#<br>
# To define the time you can provide concrete values for<br>
# minute (m), hour (h), day of month (dom), month (mon),<br>
# and day of week (dow) or use ‘*’ in these fields (for ‘any’).#<br>
# Notice that tasks will be started based on the cron’s system<br>
# daemon’s notion of time and timezones.<br>
#<br>
# Output of the crontab jobs (including errors) is sent through<br>
# email to the user the crontab file belongs to (unless redirected).<br>
#<br>
# For example, you can run a backup of all your user accounts<br>
# at 5 a.m every week with:<br>
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/<br>
#<br>
# For more information see the manual pages of crontab(5) and cron(8)<br>
#<br>
# m h  dom mon dow   command<br>
13 22 * * * /usr/bin/xterm -e ping 4.2.2.2</p>
<p>#37 14 * * * xterm -e ping 4.2.2.2<br>
#* * * * * ./getping.sh &gt;&gt; website7.html<br>
gasood@gasood-Kubuntu:~$ </p>
<p>##########################END##############################</p>
<p>Thanks in advance!</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-213483">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-213483" title="Permalink to this comment" rel="nofollow">99</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">March 26, 2012 at 7:59 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-213483">
<p>Is cron working at all. If not, check the services via the command line or Gnome Gui interface.  It should be running.  If not, stop and restart the service.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-232374">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-232374" title="Permalink to this comment" rel="nofollow">100</a></span>
<span class="comment_author">Shihabudheen VP</span>
<span class="comment_time">May 10, 2012 at 8:49 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-232374">
<p>I am trying to send one mail by using crontab but mail is going without attachement, the same script i run manually mail will go with attachement ,,,</p>
<p>really stuck,, can any one help me to get out of this</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-236466">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-236466" title="Permalink to this comment" rel="nofollow">101</a></span>
<span class="comment_author">vipin</span>
<span class="comment_time">May 20, 2012 at 5:01 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-236466">
<p>Hello,</p>
<p>Is this possible to schedule a  cron job to work on all sun,wed,fri like this </p>
<p>1 0 * * Sun,Wed,Fri  printf &gt; /www/apache/logs/error_log</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-236817">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-236817" title="Permalink to this comment" rel="nofollow">102</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">May 20, 2012 at 7:46 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-236817">
<p>Why don’t you try it with today Sun,Wed,Fri   and use the date command</p>
<p>1 6 * * Sun,Wed,Fri     date  &gt;&gt; /tmp/testcron.log </p>
<p>or if you are notsure, make three entries as</p>
<p>1 6 * * Sun    date&gt;&gt; /tmp/testcron.log<br>
1 6 * * Wed   date&gt;&gt; /tmp/testcron.log<br>
1 6 * * Fri     date&gt;&gt; /tmp/testcron.log</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-242099">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-242099" title="Permalink to this comment" rel="nofollow">103</a></span>
<span class="comment_author">thefredward</span>
<span class="comment_time">May 30, 2012 at 11:43 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-242099">
<p>i am trying to set 2 backup one for saturday at 1:00 am whole system the other one mon to fri 9:00 pm for project and data to a tape drive for all</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-242115">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-242115" title="Permalink to this comment" rel="nofollow">104</a></span>
<span class="comment_author">thefredward</span>
<span class="comment_time">May 30, 2012 at 12:31 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-242115">
<p>using crontab</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-242580">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-242580" title="Permalink to this comment" rel="nofollow">105</a></span>
<span class="comment_author">Leslie Satenstein</span>
<span class="comment_time">May 31, 2012 at 8:30 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-242580">
<p>The answer is quite simple,  create two lines in the crontab, one for the 1am time and one for the 9am time.</p>
<p>There is a false idea that a crontab can support only one row. Make two entries.</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-242593">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-242593" title="Permalink to this comment" rel="nofollow">106</a></span>
<span class="comment_author">Thefredward</span>
<span class="comment_time">May 31, 2012 at 8:47 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-242593">
<p>Iam new linux so not sher how to use cron job</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-247719">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-247719" title="Permalink to this comment" rel="nofollow">107</a></span>
<span class="comment_author">Alexander</span>
<span class="comment_time">June 7, 2012 at 10:27 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-247719">
<p>really your stuffs very helpful… Its working fine</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-270243">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-270243" title="Permalink to this comment" rel="nofollow">108</a></span>
<span class="comment_author">mahe</span>
<span class="comment_time">July 16, 2012 at 1:15 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-270243">
<p>how to stop mysql database particular time……….</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-270356">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-270356" title="Permalink to this comment" rel="nofollow">109</a></span>
<span class="comment_author">sree</span>
<span class="comment_time">July 16, 2012 at 6:10 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-270356">
<p>#!/usr/bin/perl<br>
service mysqld stop<br>
how to run this command crontab………</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-273685">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-273685" title="Permalink to this comment" rel="nofollow">110</a></span>
<span class="comment_author">akobulife</span>
<span class="comment_time">July 22, 2012 at 7:32 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-273685">
<p>hello house, i have done a check on my cron using; ps ax | grep crond, and found out that its running.<br>
but i entered this simple task but cant see any output<br>
* * * * * echo “this is a test”<br>
does it mean this output won’t be displayed on my CLI terminal (konsole)<br>
Or is the output coming out behind the scene cos i cant see any output i.e “this is a test”<br>
plz help me house cos i am new to linux</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-285931">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-285931" title="Permalink to this comment" rel="nofollow">111</a></span>
<span class="comment_author">Kiran</span>
<span class="comment_time">August 15, 2012 at 4:01 pm</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-285931">
<p>Hi When i give cron entry with below expression will it run on every 10th minute of the hour?<br>
like 9:10,10:10,11:10 on weekdays from 9am -8pm<br>
*/10 09-20 * * 1-5</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-287254">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-287254" title="Permalink to this comment" rel="nofollow">112</a></span>
<span class="comment_author">Jason</span>
<span class="comment_time">August 18, 2012 at 6:27 am</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-287254">
<p>It will run every 10 minutes in the hour from 9:00 until 20:50, Monday to Friday.</p>
<p>i.e.  9:10,9:20,9:30…20:30,20:40,20:50.</p>
</div>
					</dd>
					<dt class="comment even thread-even depth-1" id="comment-288150">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-288150" title="Permalink to this comment" rel="nofollow">113</a></span>
<span class="comment_author">dhanda vijay</span>
<span class="comment_time">August 20, 2012 at 6:05 am</span>

					</dt>
					<dd class="comment even thread-even depth-1">
<div class="format_text" id="comment-body-288150">
<p>thanks a lot</p>
</div>
					</dd>
					<dt class="comment odd alt thread-odd thread-alt depth-1" id="comment-319061">
<span class="avatar"></span>
<span class="comment_num"><a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/#comment-319061" title="Permalink to this comment" rel="nofollow">114</a></span>
<span class="comment_author">kanhaiya</span>
<span class="comment_time">September 26, 2012 at 5:19 pm</span>

					</dt>
					<dd class="comment odd alt thread-odd thread-alt depth-1">
<div class="format_text" id="comment-body-319061">
<p>thanks ramesh ……… great way to help</p>
</div>
					</dd>
				</dl>
				<div id="respond">
					<div id="respond_intro">
						<p>Leave a Comment</p>
					</div>
					<form action="http://www.thegeekstuff.com/wp-comments-post.php" method="post" id="commentform">
						<p><input class="text_input" type="text" name="author" id="author" value="" tabindex="1"><label for="author">Name</label></p>
						<p><input class="text_input" type="text" name="email" id="email" value="" tabindex="2"><label for="email">E-mail</label></p>
						<p><input class="text_input" type="text" name="url" id="url" value="" tabindex="3"><label for="url">Website</label></p>
						<p class="comment_box">
							<textarea name="comment" id="comment" tabindex="4" cols="40" rows="8"></textarea>
						</p>


	<p style="clear: both;" class="subscribe-to-comments">
	<input type="checkbox" name="subscribe" id="subscribe" value="subscribe" style="width: auto;">
	<label for="subscribe">Notify me of followup comments via e-mail</label>
	</p>


						<p class="remove_bottom_margin">
							<input name="submit" class="form_submit" type="submit" id="submit" tabindex="5" value="Submit">
<input type="hidden" name="comment_post_ID" value="534" id="comment_post_ID">
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
						</p>
<p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="a1ed70d492"></p>					</form>
				</div>
			</div>
					<div class="prev_next post_nav">
						<p class="previous">Previous post: <a href="http://www.thegeekstuff.com/2009/06/how-to-upgrade-linksys-wireless-router-firmware/" rel="prev">4 Easy Steps To Upgrade Linksys Wireless Router Firmware</a></p>
						<p>Next post: <a href="http://www.thegeekstuff.com/2009/06/ppm-install-error-no-suitable-installation-target-found-for-package/" rel="next">PPM Install Error: no suitable installation target found for package</a></p>
					</div>
		</div>

		<div id="sidebars">
			<div id="sidebar_1" class="sidebar">
				<ul class="sidebar_list">
<li class="widget widget_text" id="text-3">			<div class="textwidget"><div class="fancy-widget">
 <form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open(&#39;http://feedburner.google.com/fb/a/mailverify?uri=thegeekstuff&#39;, &#39;popupwindow&#39;, &#39;scrollbars=yes,width=550,height=520&#39;);return true">
        <p>Sign up for our free email newsletter
			<input type="text" style="background-color:#fffeee" value="you@address.com" name="email" onclick="if (this.value==&#39;you@address.com&#39;) {this.value=&#39;&#39;};" onblur="if (this.value==&#39;&#39;) {this.value=&#39;you@address.com&#39;;}">
			<input type="hidden" value="thegeekstuff" name="uri">
			<input type="hidden" name="loc" value="en_US">
            &nbsp;&nbsp;&nbsp; <input style="border-color:#CCCCCC #999999 #999999 #CCCCCC; border-style:double; border-width:3px; font-weight:bold; overflow:visible;" type="submit" value="Sign Up">
         </p>
    </form>

<p>
<a title="RSS Feed" href="http://www.thegeekstuff.com/feed" rel="nofollow"><img src="./Linux Crontab  15 Awesome Cron Job Examples_files/TheGeekStuff" height="26" width="88" style="border:0" alt=""></a> &nbsp; &nbsp; <img src="./Linux Crontab  15 Awesome Cron Job Examples_files/feed14.png"> <a title="Subscribe via RSS" href="http://www.thegeekstuff.com/feed" rel="nofollow">RSS</a> <img src="./Linux Crontab  15 Awesome Cron Job Examples_files/twitter16.png">   <a title="Follow us on Twitter" href="http://twitter.com/thegeekstuff" rel="nofollow">Twitter</a>   <img src="./Linux Crontab  15 Awesome Cron Job Examples_files/facebook16.png">   <a title="Become a fan" href="http://www.facebook.com/thegeekstuff" rel="nofollow">Facebook</a> 
</p>
</div>
<br>
<form action="http://www.thegeekstuff.com/the-geek-stuff-search-powered-by-google" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="005666763606120661560:zkmegbt_djm">
    <input type="hidden" name="cof" value="FORID:10">
    <input type="hidden" name="ie" value="UTF-8">
    <input style="background-color: rgb(255, 255, 255); background-image: url(http://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif); background-position: 0% 50%; background-repeat: no-repeat no-repeat; " type="text" name="q" size="30">
    <input style="border-color:#CCCCCC #999999 #999999 #CCCCCC; border-style:double; border-width:1px; overflow:visible;" type="submit" name="sa" value="Search">
  </div>
<input name="siteurl" type="hidden" value="www.thegeekstuff.com/2009/06/15-practical-crontab-examples/"><input name="ref" type="hidden" value="www.google.com.vn/url?sa=t&amp;rct=j&amp;q=linux%20cron%20job%20example&amp;source=web&amp;cd=1&amp;ved=0CCUQFjAA&amp;url=http%3A%2F%2Fwww.thegeekstuff.com%2F2009%2F06%2F15-practical-crontab-examples%2F&amp;ei=IXtqUK3JHMWhiQeti4Bo&amp;usg=AFQjCNHX6UQ8oiqOQ1rC548oKU5ooJNGgw&amp;cad=rja"><input name="ss" type="hidden" value=""></form>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/jsapi"></script>
<script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/saved_resource(1)" type="text/javascript"></script><link href="./Linux Crontab  15 Awesome Cron Job Examples_files/transliteration.css" type="text/css" rel="stylesheet"><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/transliteration.I.js" type="text/javascript"></script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/t13n"></script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/brand"></script>
<br>
<center>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-8090601437064582";
/* TGS SinglePost Bottom Big Sqaure */
google_ad_slot = "1217770572";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px"><ins id="aswift_3_anchor" style="display:block;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px"><iframe allowtransparency="true" frameborder="0" height="280" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="336" id="aswift_3" name="aswift_3" style="left:0;position:absolute;top:0;"></iframe></ins></ins>
</center></div>
		</li><li class="widget widget_text" id="text-4"><h3>EBOOKS</h3>			<div class="textwidget"><a href="http://www.thegeekstuff.com/linux-101-hacks-ebook/"><img title="Linux 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/linux-101-hacks-300x115.png" alt="Bash 101 Hacks Book"></a>
<br>
<br>
<br>
<a href="http://www.thegeekstuff.com/bash-101-hacks-ebook/"><img title="Bash 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/bash-300x115.png" alt="Bash 101 Hacks Book"></a>
<br>
<br>
<br>
<a href="http://www.thegeekstuff.com/sed-awk-101-hacks-ebook/"><img title="Sed and Awk 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/sed-and-awk-300x115.png" alt="Sed and Awk 101 Hacks Book"></a>
<br>
<br>
<br>
<a href="http://www.thegeekstuff.com/vim-101-hacks-ebook/"><img title="Vim 101 Hacks Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/vim-101-hacks-300x115.png" alt="Vim 101 Hacks Book"></a>
<br>
<br>
<br>
<a href="http://www.thegeekstuff.com/nagios-core-ebook/"><img title="Nagios Core 3 Book" src="./Linux Crontab  15 Awesome Cron Job Examples_files/nagios-core-300x115.png" alt="Nagios Core 3 Book"></a></div>
		</li><li class="widget widget_text" id="text-15">			<div class="textwidget"><div id="adssidebar1"><div id="load-adssidebar1">
<!-- begin ad tag (tile=2) -->
<script language="JavaScript" type="text/javascript">
if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
document.write('<script language="JavaScript" src="http://a.collective-media.net/adj/idgt.thegeekstuff/article_above;sec=article;fold=above;tile=2;sz=300x250;ord=' + ord + '?" type="text/javascript"><\/script>');
</script><script language="JavaScript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_above;sec=article;fold=above;tile=2;sz=300x250" type="text/javascript"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_above;sec=article;fold=above;tile=2;sz=300x250;ord=5367782956454903;ord1=125136"></script><script type="text/javascript">document.write('<scr'+'ipt language="javascript" src="http://ib.adnxs.com/ptj?member=752&imp_id=idgt-31337838007_1349155622,12a43b2d5a093c5&inv_code=idgt.thegeekstuff&size=300x250&referrer=www.thegeekstuff.com&redir=http%3A%2F%2Fad.doubleclick.net%2Fadj%2Fidgt.thegeekstuff%2Farticle_above%3Bnet%3Didgt%3Bu%3D%2Cidgt-31337838007_1349155622%2C12a43b2d5a093c5%2Csec_antv%2Cax.{PRICEBUCKET}-idgt.sec_antv_l%3Bsec%3Darticle%3Bfold%3Dabove%3Btile%3D2%3Bsz%3D300x250%3Bord1%3D125136%3Bcmw%3Dowl%3Bcontx%3Dsec_antv%3Bcmd%3Dwww.thegeekstuff.com%3Ban%3D{PRICEBUCKET}%3Bbu%3D{BUYER_MEMBER_ID}%3Bbr%3D{BRAND_ID}%3Bbtg%3Didgt.sec_antv_l%3Bord%3D5367782956454903"></scr'+'ipt>');document.write('<scr'+'ipt>window.cmcb["idgt-31337838007_1349155622"]();</scr'+'ipt>');</script><script language="Javascript">CollectiveMedia.createAndAttachAd("idgt-31337838007_1349155622","http://ib.adnxs.com/ptj?member=752&imp_id=idgt-31337838007_1349155622,12a43b2d5a093c5&inv_code=idgt.thegeekstuff&size=300x250&referrer=www.thegeekstuff.com&redir=http%3A%2F%2Fad.doubleclick.net%2Fadj%2Fidgt.thegeekstuff%2Farticle_above%3Bnet%3Didgt%3Bu%3D%2Cidgt-31337838007_1349155622%2C12a43b2d5a093c5%2Csec_antv%2Cax.{PRICEBUCKET}-idgt.sec_antv_l%3Bsec%3Darticle%3Bfold%3Dabove%3Btile%3D2%3Bsz%3D300x250%3Bord1%3D125136%3Bcmw%3Dowl%3Bcontx%3Dsec_antv%3Bcmd%3Dwww.thegeekstuff.com%3Ban%3D{PRICEBUCKET}%3Bbu%3D{BUYER_MEMBER_ID}%3Bbr%3D{BRAND_ID}%3Bbtg%3Didgt.sec_antv_l%3Bord%3D5367782956454903","300","250",false);</script><script language="javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/ptj"></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_above;net=idgt;u=,idgt-31337838007_1349155622,12a43b2d5a093c5,sec_antv,ax.-idgt.sec_antv_l;sec=article;fold=above;tile=2;sz=300x250;ord1=125136;cmw=owl;contx=sec_antv;cmd=www.thegeekstuff.com;an=;bu=1065;br=4834;btg=idgt.sec_antv_l"></script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/meld128.js"></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/787215"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/getjs.aspx"></script><div id="cw_td_4528233" style="height: 0px; width: 0px; display: none; "></div><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/GetAd.aspx"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/meld.js"></script><!-- Begin Cox Digital Solutions Tag  on "IDGTech_aud" --><script type="text/javascript">    cdsTag = {};    cdsTag.zones = {};    cdsTag.zones.as1000009720107 = { "size": "300x250", "id": "1000009720107" };    cdsTag.siteId = 1000102538480;    cdsTag.keywords = null;    cdsTag.user = null;    cdsTag.onLoad = function () {        cdsPlaceAd("as1000009720107");    }</script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/cdsad.js"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/ad"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/meld(1).js"></script><script type="text/javascript"><!--
google_ad_client = "ca-pub-7443704194229694";
/* Admeld 300x250 INTL */
google_ad_slot = "5415226845";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px"><ins id="aswift_4_anchor" style="display:block;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px"><iframe allowtransparency="true" frameborder="0" height="250" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="300" id="aswift_4" name="aswift_4" style="left:0;position:absolute;top:0;"></iframe></ins></ins><div style="height:0px;width:0px;overflow:hidden;border: 0px none;display:none;"><iframe width="0" height="0" frameborder="0" src="./Linux Crontab  15 Awesome Cron Job Examples_files/ad(2)" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no"></iframe></div>

<!-- End Cox Digital Solutions Tag on "IDGTech_aud" --><div style="display:none;width:0;height:0"><script>var _comscore = _comscore || [];_comscore.push({ c1: "8", c2: "2102", c3: "0", c4: "", c5: "", c15: "", c16: "" });(function() {var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";el.parentNode.insertBefore(s, el);})();</script><noscript>&lt;img src="http://b.scorecardresearch.com/p?c1=8&amp;c2=2102&amp;c3=0&amp;c4=&amp;c5=&amp;c6=&amp;c15=&amp;c16=&amp;cv=2.0&amp;cj=1" /&gt;</noscript></div><div style="display:none;width:0;height:0"><iframe src="./Linux Crontab  15 Awesome Cron Job Examples_files/p-01-0VIaSjnOLg.gif" height="0" width="0" marginwidth="0" marginheight="0" allowtransparency="true" frameborder="0" scrolling="NO"></iframe></div><div style="display:none"><iframe src="./Linux Crontab  15 Awesome Cron Job Examples_files/visitormatch.html"></iframe></div>

<img src="./Linux Crontab  15 Awesome Cron Job Examples_files/u.php" width="1" height="1"><script>window.cmcb["idgt-31337838007_1349155622"]();</script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/beacon(1).js"></script><script language="Javascript" id="LOTCC_851" src="./Linux Crontab  15 Awesome Cron Job Examples_files/cc_af.js"></script><script type="text/javascript">try{var additional = ""; if (window.bap_skip_next) {additional = window.bap_skip_next; window.bap_skip_next = false;}; var src = "//c.betrad.com/surly.js?;ad_w=300;ad_h=250;coid=522;nid=4262;cps=idgt;" + additional; additional = "";document.write('<sc'+'ript type="text/javascript" src="' + src + '"></scr'+'ipt>');}catch(err){ alert( err ); }</script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/surly.js"></script><script>(function(){if(d.getElementById('ba.js'))return;d.write('<sc'+'ript id="ba.js" type="text/javascript" src="http://c.betrad.com/geo/ba.js?r756"></scr'+'ipt>');})();</script><script id="ba.js" type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/ba.js"></script><script>d.write('<sc'+'ript>try{BAP.start(_bao);}catch(e){var _bab = _bab||[];var ob={}; for (var p in _bao) {ob[p]=_bao[p]}_bab.push(ob);}</sc'+'ript>');</script><script>try{BAP.start(_bao);}catch(e){var _bab = _bab||[];var ob={}; for (var p in _bao) {ob[p]=_bao[p]}_bab.push(ob);}</script><noscript>&lt;a href="http://a.collective-media.net/jump/idgt.thegeekstuff/article_above;sec=article;fold=above;tile=2;sz=300x250;ord=123456789?" target="_blank"&gt;&lt;img src="http://a.collective-media.net/ad/idgt.thegeekstuff/article_above;sec=article;fold=above;tile=2;sz=300x250;ord=123456789?" width="300" height="250" border="0" alt=""&gt;&lt;/a&gt;</noscript>
<!-- End ad tag -->
</div></div></div>
		</li><li class="widget widget_text" id="text-17"><h3>POPULAR POSTS</h3>			<div class="textwidget"><ul>
<li><a href="http://www.thegeekstuff.com/2009/01/12-amazing-and-essential-linux-books-to-enrich-your-brain-and-library/">12 Amazing and Essential Linux Books To Enrich Your Brain and Library</a></li>
<li><a href="http://www.thegeekstuff.com/2010/12/50-unix-linux-sysadmin-tutorials/">50 UNIX / Linux Sysadmin Tutorials</a></li>
<li><a href="http://www.thegeekstuff.com/2010/11/50-linux-commands/">50 Most Frequently Used UNIX / Linux Commands (With Examples)</a></li>
<li><a href="http://www.thegeekstuff.com/2010/08/gtd-getting-things-done/">How To Be Productive and Get Things Done Using GTD</a></li>
<li><a href="http://www.thegeekstuff.com/2010/03/30-things-to-do-when-you-are-bored-and-have-a-computer/">30 Things To Do When you are Bored and have a Computer</a></li>
<li><a href="http://www.thegeekstuff.com/2010/09/linux-file-system-structure/">Linux Directory Structure (File System Structure) Explained with Examples</a></li>
<li><a href="./Linux Crontab  15 Awesome Cron Job Examples_files/Linux Crontab  15 Awesome Cron Job Examples.html">Linux Crontab: 15 Awesome Cron Job Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/">Get a Grip on the Grep! – 15 Practical Grep Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/">Unix LS Command: 15 Practical Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/">15 Examples To Master Linux Command Line History</a></li>
<li><a href="http://www.thegeekstuff.com/2010/08/bug-tracking-system/">Top 10 Open Source Bug Tracking System</a></li>
<li><a href="http://www.thegeekstuff.com/2009/01/vi-and-vim-macro-tutorial-how-to-record-and-play/">Vi and Vim Macro Tutorial: How To Record and Play</a></li>
<li><a href="http://www.thegeekstuff.com/2009/03/15-practical-linux-find-command-examples/">Mommy, I found it! -- 15 Practical Linux Find Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/07/best-gmail-tips-and-tricks/">15 Awesome Gmail Tips and Tricks</a></li>
<li><a href="http://www.thegeekstuff.com/2009/06/expertise-in-google-search/">15 Awesome Google Search Tips and Tricks</a></li>
<li><a href="http://www.thegeekstuff.com/2010/08/raid-levels-tutorial/">RAID 0, RAID 1, RAID 5, RAID 10 Explained with Diagrams</a></li>
<li><a href="http://www.thegeekstuff.com/2010/01/15-practical-unix-linux-top-command-examples/">Can You Top This? 15 Practical Linux Top Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/09/top-5-best-network-monitoring-tools/">Top 5 Best System Monitoring Tools</a></li>
<li><a href="http://www.thegeekstuff.com/2009/06/top-5-best-linux-os-distributions/">Top 5 Best Linux OS Distributions</a></li>
<li><a href="http://www.thegeekstuff.com/2008/06/how-to-monitor-remote-linux-host-using-nagios-30/">How To Monitor Remote Linux Host using Nagios 3.0</a></li>
<li><a href="http://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/">Awk Introduction Tutorial – 7 Awk Print Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2010/09/rsync-command-examples/">How to Backup Linux? 15 rsync Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/09/the-ultimate-wget-download-guide-with-15-awesome-examples/">The Ultimate Wget Download Guide With 15 Awesome Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2009/07/top-5-best-linux-text-editors/">Top 5 Best Linux Text Editors</a></li>
<li><a href="http://www.thegeekstuff.com/2010/08/tcpdump-command-examples/">Packet Analyzer: 15 TCPDUMP Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2010/06/bash-array-tutorial/">The Ultimate Bash Array Tutorial with 15 Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/">3 Steps to Perform SSH Login Without Password Using ssh-keygen &amp; ssh-copy-id</a></li>
<li><a href="http://www.thegeekstuff.com/2009/10/unix-sed-tutorial-advanced-sed-substitution-examples/">Unix Sed Tutorial: Advanced Sed Substitution Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2010/03/netstat-command-examples/">UNIX / Linux: 10 Netstat Command Examples</a></li>
<li><a href="http://www.thegeekstuff.com/2008/06/the-ultimate-guide-for-creating-strong-passwords/">The Ultimate Guide for Creating Strong Passwords</a></li>
<li><a href="http://www.thegeekstuff.com/2008/08/6-steps-to-secure-your-home-wireless-network/">6 Steps to Secure Your Home Wireless Network</a></li>
<li><a href="http://www.thegeekstuff.com/2008/08/turbocharge-putty-with-12-powerful-add-ons-software-for-geeks-3/">Turbocharge PuTTY with 12 Powerful Add-Ons</a></li>
</ul></div>
		</li><li class="widget widget_text" id="text-16">			<div class="textwidget"><div id="adssidebar3"><div id="load-adssidebar3">
<!-- begin ad tag (tile=3) -->
<script language="JavaScript" type="text/javascript">
if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
document.write('<script language="JavaScript" src="http://a.collective-media.net/adj/idgt.thegeekstuff/article_below;sec=article;fold=below;tile=3;sz=160x600;ord=' + ord + '?" type="text/javascript"><\/script>');
</script><script language="JavaScript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_below;sec=article;fold=below;tile=3;sz=160x600" type="text/javascript"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_below;sec=article;fold=below;tile=3;sz=160x600;ord=5367782956454903;ord1=513195"></script><script type="text/javascript">document.write('<scr'+'ipt language="javascript" src="http://ib.adnxs.com/ptj?member=752&imp_id=idgt-31332443286_1349155627,12a43b2d5a093c5&inv_code=idgt.thegeekstuff&size=160x600&referrer=www.thegeekstuff.com&redir=http%3A%2F%2Fad.doubleclick.net%2Fadj%2Fidgt.thegeekstuff%2Farticle_below%3Bnet%3Didgt%3Bu%3D%2Cidgt-31332443286_1349155627%2C12a43b2d5a093c5%2Csec_antv%2Cax.{PRICEBUCKET}-idgt.sec_antv_l%3Bsec%3Darticle%3Bfold%3Dbelow%3Btile%3D3%3Bsz%3D160x600%3Bord1%3D513195%3Bcmw%3Dowl%3Bcontx%3Dsec_antv%3Bcmd%3Dwww.thegeekstuff.com%3Ban%3D{PRICEBUCKET}%3Bbu%3D{BUYER_MEMBER_ID}%3Bbr%3D{BRAND_ID}%3Bbtg%3Didgt.sec_antv_l%3Bord%3D5367782956454903"></scr'+'ipt>');document.write('<scr'+'ipt>window.cmcb["idgt-31332443286_1349155627"]();</scr'+'ipt>');</script><script language="Javascript">CollectiveMedia.createAndAttachAd("idgt-31332443286_1349155627","http://ib.adnxs.com/ptj?member=752&imp_id=idgt-31332443286_1349155627,12a43b2d5a093c5&inv_code=idgt.thegeekstuff&size=160x600&referrer=www.thegeekstuff.com&redir=http%3A%2F%2Fad.doubleclick.net%2Fadj%2Fidgt.thegeekstuff%2Farticle_below%3Bnet%3Didgt%3Bu%3D%2Cidgt-31332443286_1349155627%2C12a43b2d5a093c5%2Csec_antv%2Cax.{PRICEBUCKET}-idgt.sec_antv_l%3Bsec%3Darticle%3Bfold%3Dbelow%3Btile%3D3%3Bsz%3D160x600%3Bord1%3D513195%3Bcmw%3Dowl%3Bcontx%3Dsec_antv%3Bcmd%3Dwww.thegeekstuff.com%3Ban%3D{PRICEBUCKET}%3Bbu%3D{BUYER_MEMBER_ID}%3Bbr%3D{BRAND_ID}%3Bbtg%3Didgt.sec_antv_l%3Bord%3D5367782956454903","160","600",false);</script><script language="javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/ptj(1)"></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_below;net=idgt;u=,idgt-31332443286_1349155627,12a43b2d5a093c5,sec_antv,ax.-idgt.sec_antv_l;sec=article;fold=below;tile=3;sz=160x600;ord1=513195;cmw=owl;contx=sec_antv;cmd=www.thegeekstuff.com;an=;bu=1065;br=4834;btg=idgt.sec_antv_l"></script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/meld128.js"></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/787215(1)"></script><!-- Begin Cox Digital Solutions Tag Âon "IDGTech_aud" --><script type="text/javascript"> Â ÂcdsTag = {}; Â ÂcdsTag.zones = {}; Â ÂcdsTag.zones.as1000009720207 = { "size": "160x600", "id": "1000009720207" }; Â ÂcdsTag.siteId = 1000102538480; Â ÂcdsTag.keywords = null; Â ÂcdsTag.user = null; Â ÂcdsTag.onLoad = function () { Â Â Â ÂcdsPlaceAd("as1000009720207"); Â Â}</script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/cdsad.js"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/ad(1)"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/meld(1).js"></script><script type="text/javascript"><!--
google_ad_client = "ca-pub-7443704194229694";
/* Admeld 300x250 INTL */
google_ad_slot = "5415226845";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px"><ins id="aswift_5_anchor" style="display:block;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px"><iframe allowtransparency="true" frameborder="0" height="250" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="300" id="aswift_5" name="aswift_5" style="left:0;position:absolute;top:0;"></iframe></ins></ins>

<!-- End Cox Digital Solutions Tag on "IDGTech_aud" -->
<img src="./Linux Crontab  15 Awesome Cron Job Examples_files/pixel" width="1" height="1"><script>window.cmcb["idgt-31332443286_1349155627"]();</script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/beacon(1).js"></script><script language="Javascript" id="LOTCC_851" src="./Linux Crontab  15 Awesome Cron Job Examples_files/cc_af.js"></script><script type="text/javascript">try{var additional = ""; if (window.bap_skip_next) {additional = window.bap_skip_next; window.bap_skip_next = false;}; var src = "//c.betrad.com/surly.js?;ad_w=160;ad_h=600;coid=522;nid=4262;cps=idgt;" + additional; additional = "";document.write('<sc'+'ript type="text/javascript" src="' + src + '"></scr'+'ipt>');}catch(err){ alert( err ); }</script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/surly(1).js"></script><img style="margin: 0px; padding: 0px; " border="0" width="0" height="0" src="./Linux Crontab  15 Awesome Cron Job Examples_files/4.gif" id="bap-pixel-7774"><script>(function(){if(d.getElementById('ba.js'))return;d.write('<sc'+'ript id="ba.js" type="text/javascript" src="http://c.betrad.com/geo/ba.js?r756"></scr'+'ipt>');})();</script><script>d.write('<sc'+'ript>try{BAP.start(_bao);}catch(e){var _bab = _bab||[];var ob={}; for (var p in _bao) {ob[p]=_bao[p]}_bab.push(ob);}</sc'+'ript>');</script><script>try{BAP.start(_bao);}catch(e){var _bab = _bab||[];var ob={}; for (var p in _bao) {ob[p]=_bao[p]}_bab.push(ob);}</script><noscript>&lt;a href="http://a.collective-media.net/jump/idgt.thegeekstuff/article_below;sec=article;fold=below;tile=3;sz=160x600;ord=123456789?" target="_blank"&gt;&lt;img src="http://a.collective-media.net/ad/idgt.thegeekstuff/article_below;sec=article;fold=below;tile=3;sz=160x600;ord=123456789?" width="160" height="600" border="0" alt=""&gt;&lt;/a&gt;</noscript>
<!-- End ad tag -->
</div></div>
</div>
		</li>				</ul>
			</div>
		</div>
	</div>
	<div id="footer">
<div class="col_footer1">
	<ul class="sidebar_list">
<li id="text-7" class="widget widget_text"><h3>About The Geek Stuff</h3>			<div class="textwidget"><br>
<img class="float" title="Ramesh Natarajan" src="./Linux Crontab  15 Awesome Cron Job Examples_files/ramesh-small.gif" alt="Linux 101 Hacks Book">
My name is <strong>Ramesh Natarajan</strong>. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about <a href="http://www.thegeekstuff.com/about/">Ramesh Natarajan</a> and the blog.</div>
		</li>
<li id="text-8" class="widget widget_text"><h3>Support Us</h3>			<div class="textwidget"><br>
Support this blog by purchasing one of my ebooks.
<br><br>
<a rel="nofollow" href="http://www.thegeekstuff.com/bash-101-hacks-ebook/">Bash 101 Hacks eBook</a>
<br><br>
<a rel="nofollow" href="http://www.thegeekstuff.com/sed-awk-101-hacks-ebook/">Sed and Awk 101 Hacks eBook</a>
<br><br>
<a rel="nofollow" href="http://www.thegeekstuff.com/vim-101-hacks-ebook/">Vim 101 Hacks eBook</a>
<br><br>
<a rel="nofollow" href="http://www.thegeekstuff.com/nagios-core-ebook/">Nagios Core 3 eBook</a></div>
		</li>
<li id="text-9" class="widget widget_text"><h3>Contact Us</h3>			<div class="textwidget"><br>
<strong>Email Me :</strong>
Use this <a href="http://www.thegeekstuff.com/contact" rel="nofollow">Contact Form</a> to get in touch me with your comments, questions or suggestions about this site. You can also simply drop me a line to say hello!.
<br><br>
<a title="Follow us on Twitter" href="http://twitter.com/thegeekstuff" rel="nofollow">Follow us on Twitter</a>
<br><br>
<a href="http://www.facebook.com/thegeekstuff" rel="nofollow">Become a fan on Facebook</a>&nbsp;&nbsp;</div>
		</li>
	</ul>
</div>

<div class="cb"></div>
	<p>Copyright © 2008–2012 Ramesh Natarajan. All rights reserved  | 
<a href="http://www.thegeekstuff.com/copyright">Terms of Service</a> | 
<a href="http://www.thegeekstuff.com/advertise" title="Advertise on TheGeekStuff">Advertise</a> </p>	</div>
<center>
<div id="footer-ad"><div id="adsfooter"><div id="load-adsfooter">
<!-- begin ad tag (tile=6) -->
<script language="JavaScript" type="text/javascript">
if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
document.write('<script language="JavaScript" src="http://a.collective-media.net/adj/idgt.thegeekstuff/article_below;sec=article;fold=below;tile=6;sz=728x90;ord=' + ord + '?" type="text/javascript"><\/script>');</script><script language="JavaScript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_below;sec=article;fold=below;tile=6;sz=728x90" type="text/javascript"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_below;sec=article;fold=below;tile=6;sz=728x90;ord=5367782956454903;ord1=79889"></script><script type="text/javascript">document.write('<scr'+'ipt language="javascript" src="http://ib.adnxs.com/ptj?member=752&imp_id=idgt-31411842806_1349155629,12a43b2d5a093c5&inv_code=idgt.thegeekstuff&size=728x90&referrer=www.thegeekstuff.com&redir=http%3A%2F%2Fad.doubleclick.net%2Fadj%2Fidgt.thegeekstuff%2Farticle_below%3Bnet%3Didgt%3Bu%3D%2Cidgt-31411842806_1349155629%2C12a43b2d5a093c5%2Csec_antv%2Cax.{PRICEBUCKET}-idgt.sec_antv_h%3Bsec%3Darticle%3Bfold%3Dbelow%3Btile%3D6%3Bsz%3D728x90%3Bord1%3D79889%3Bcmw%3Dowl%3Bcontx%3Dsec_antv%3Bcmd%3Dwww.thegeekstuff.com%3Ban%3D{PRICEBUCKET}%3Bbu%3D{BUYER_MEMBER_ID}%3Bbr%3D{BRAND_ID}%3Bbtg%3Didgt.sec_antv_h%3Bord%3D5367782956454903"></scr'+'ipt>');document.write('<scr'+'ipt>window.cmcb["idgt-31411842806_1349155629"]();</scr'+'ipt>');</script><script language="Javascript">CollectiveMedia.createAndAttachAd("idgt-31411842806_1349155629","http://ib.adnxs.com/ptj?member=752&imp_id=idgt-31411842806_1349155629,12a43b2d5a093c5&inv_code=idgt.thegeekstuff&size=728x90&referrer=www.thegeekstuff.com&redir=http%3A%2F%2Fad.doubleclick.net%2Fadj%2Fidgt.thegeekstuff%2Farticle_below%3Bnet%3Didgt%3Bu%3D%2Cidgt-31411842806_1349155629%2C12a43b2d5a093c5%2Csec_antv%2Cax.{PRICEBUCKET}-idgt.sec_antv_h%3Bsec%3Darticle%3Bfold%3Dbelow%3Btile%3D6%3Bsz%3D728x90%3Bord1%3D79889%3Bcmw%3Dowl%3Bcontx%3Dsec_antv%3Bcmd%3Dwww.thegeekstuff.com%3Ban%3D{PRICEBUCKET}%3Bbu%3D{BUYER_MEMBER_ID}%3Bbr%3D{BRAND_ID}%3Bbtg%3Didgt.sec_antv_h%3Bord%3D5367782956454903","728","90",false);</script><script language="javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/ptj(2)"></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/article_below;net=idgt;u=,idgt-31411842806_1349155629,12a43b2d5a093c5,sec_antv,ax.-idgt.sec_antv_h;sec=article;fold=below;tile=6;sz=728x90;ord1=79889;cmw=owl;contx=sec_antv;cmd=www.thegeekstuff.com;an=;bu=1065;br=4834;btg=idgt.sec_antv_h"></script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/meld128.js"></script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/787215(2)"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/getjs(1).aspx"></script><div id="cw_td_8816241" style="height: 0px; width: 0px; display: none; "></div><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/GetAd(1).aspx"></script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/meld(2).js"></script><script type="text/javascript"><!--
google_ad_client = "ca-pub-7443704194229694";
/* Admeld 728x90 INTL */
google_ad_slot = "0524856688";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><ins id="aswift_6_anchor" style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><iframe allowtransparency="true" frameborder="0" height="90" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="728" id="aswift_6" name="aswift_6" style="left:0;position:absolute;top:0;"></iframe></ins></ins><div style="display:none;width:0;height:0"><script>var _comscore = _comscore || [];_comscore.push({ c1: "8", c2: "2102", c3: "106", c4: "", c5: "", c15: "", c16: "" });(function() {var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";el.parentNode.insertBefore(s, el);})();</script><noscript>&lt;img src="http://b.scorecardresearch.com/p?c1=8&amp;c2=2102&amp;c3=106&amp;c4=&amp;c5=&amp;c6=&amp;c15=&amp;c16=&amp;cv=2.0&amp;cj=1" /&gt;</noscript></div><div style="display:none;width:0;height:0"><iframe src="./Linux Crontab  15 Awesome Cron Job Examples_files/p-01-0VIaSjnOLg(1).gif" height="0" width="0" marginwidth="0" marginheight="0" allowtransparency="true" frameborder="0" scrolling="NO"></iframe></div>

<img src="./Linux Crontab  15 Awesome Cron Job Examples_files/match" width="1" height="1"><script>window.cmcb["idgt-31411842806_1349155629"]();</script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/beacon(1).js"></script><script language="Javascript" id="LOTCC_851" src="./Linux Crontab  15 Awesome Cron Job Examples_files/cc_af.js"></script><script type="text/javascript">try{var additional = ""; if (window.bap_skip_next) {additional = window.bap_skip_next; window.bap_skip_next = false;}; var src = "//c.betrad.com/surly.js?;ad_w=728;ad_h=90;coid=522;nid=4262;cps=idgt;" + additional; additional = "";document.write('<sc'+'ript type="text/javascript" src="' + src + '"></scr'+'ipt>');}catch(err){ alert( err ); }</script><script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/surly(2).js"></script><script>(function(){if(d.getElementById('ba.js'))return;d.write('<sc'+'ript id="ba.js" type="text/javascript" src="http://c.betrad.com/geo/ba.js?r756"></scr'+'ipt>');})();</script><script>d.write('<sc'+'ript>try{BAP.start(_bao);}catch(e){var _bab = _bab||[];var ob={}; for (var p in _bao) {ob[p]=_bao[p]}_bab.push(ob);}</sc'+'ript>');</script><script>try{BAP.start(_bao);}catch(e){var _bab = _bab||[];var ob={}; for (var p in _bao) {ob[p]=_bao[p]}_bab.push(ob);}</script><noscript>&lt;a href="http://a.collective-media.net/jump/idgt.thegeekstuff/article_below;sec=article;fold=below;tile=6;sz=728x90;ord=123456789?" target="_blank"&gt;&lt;img src="http://a.collective-media.net/ad/idgt.thegeekstuff/article_below;sec=article;fold=below;tile=6;sz=728x90;ord=123456789?" width="728" height="90" border="0" alt=""&gt;&lt;/a&gt;</noscript>
<!-- End ad tag -->
</div></div></div>
</center>
</div>
</div>
<!--[if lte IE 8]>
<div id="ie_clear"></div>
<![endif]-->
<script type="text/javascript" src="./Linux Crontab  15 Awesome Cron Job Examples_files/jqads.js"></script>
<script type="text/javascript">
<!--
  function loadTGSads(TGSAds){
    $("#load-ads" + TGSAds).appendTo('#ads' + TGSAds)
  }
//-->
</script>

<div style="display:none">

</div><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/4262.js"></script>
<script type="text/javascript">
<!--
loadTGSads('sidebar1');
//-->
</script>

<div style="display:none">

</div>
<script type="text/javascript">
<!--
loadTGSads('sidebar3');
//-->
</script>

<div style="display:none">

</div>
<script type="text/javascript">
<!--
loadTGSads('footer');
//-->
</script>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><script src="./Linux Crontab  15 Awesome Cron Job Examples_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-5302569-1");
pageTracker._trackPageview();
} catch(err) {}</script>



<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-10-01 23:15:39 --><style id="bass-COMMON" type="text/css">.bap-blue,.bap-close,.bap-div,.bap-gradient,.bap-gray,.bap-img-container,.bap-notice,.bap-link-div{color:#000;white-space:normal;word-wrap:normal;vertical-align:middle!important;margin:0;padding:0;border:0;outline:0;font-family:Arial!important;font-size:100%;border-collapse:collapse;border-spacing:0;line-height:13px;list-style:none;letter-spacing:0!important;text-align:left;}.bap-notice{background-color:#FFF;padding:2px;font-size:16px;line-height:13px;z-index:9991;top:-100px;left:-100px;}.bap-blue,.bap-blue:link,.bap-blue:visited{color:#2b2f98;}.bap-close{width:20px;color:#707070;font-size:10px;font-weight:bold;margin-left:-22px;position:relative;top:1px;left:100%;cursor:pointer;}.bap-div{border:1px solid #ababab;}.bap-div p{float:none;padding:0;}.bap-gray,.bap-gray:visited{color:#444;}.bap-img-container a{vertical-align:middle;display:table-cell;height:45px;}.bap-link-div{height:14px;color:#2b2f98;border-top:1px solid #ababab;padding:3px 10px 4px 10px;text-decoration:none;font-size:.67em!important;font-weight:bold;}.bap-link-div a,.bap-link-div span{text-decoration:none;font-size:inherit;font-weight:bold;}#BAP-holder img{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;max-width:100%;box-shadow:0 0!important;-moz-box-shadow:0 0!important;-webkit-box-shadow:0 0!important;background:none!important;}#BAP-holder{position:static!important;}#BAP-holder .bap-trigger{z-index:9990;}.bap-trigger{cursor:pointer;display:block;font-family:Arial;font-size:8pt;white-space:nowrap;}</style><div id="BAP-holder"><div id="trigger-container-61453" style="position: static !important; "><span id="trigger-box-61453" class="bap-trigger" style="position: absolute; opacity: 0.7; width: 19px; height: 15px; top: 1541.91650390625px; left: 1065px; "><img id="trigger-box-image-61453" src="./Linux Crontab  15 Awesome Cron Job Examples_files/box_19_top-right.png"></span><span id="trigger-61453" style="position: absolute; top: 1541.91650390625px; left: 1065px; " class="bap-trigger" onclick="BAP.action(&#39;61453&#39;, &#39;S&#39;); BAP.action(&#39;61453&#39;, &#39;M&#39;); _w.open(BAP.moreInfoHref(61453), &#39;_newtab&#39;);" onmouseover="BAP.expandIcon(61453)" onmouseout="BAP.collapseIcon(61453)"><img src="./Linux Crontab  15 Awesome Cron Job Examples_files/ci.png"></span></div><div id="trigger-container-7774" style="position: static !important; "><span id="trigger-box-7774" class="bap-trigger" style="position: absolute; opacity: 0.7; width: 19px; height: 15px; top: 2580.349853515625px; left: 1066px; "><img id="trigger-box-image-7774" src="./Linux Crontab  15 Awesome Cron Job Examples_files/box_19_top-right.png"></span><span id="trigger-7774" style="position: absolute; top: 2580.349853515625px; left: 1066px; " class="bap-trigger" onclick="BAP.action(&#39;7774&#39;, &#39;S&#39;); BAP.action(&#39;7774&#39;, &#39;M&#39;); _w.open(BAP.moreInfoHref(7774), &#39;_newtab&#39;);" onmouseover="BAP.expandIcon(7774)" onmouseout="BAP.collapseIcon(7774)"><img src="./Linux Crontab  15 Awesome Cron Job Examples_files/ci.png"></span></div><div id="trigger-container-92595" style="position: static !important; "><span id="trigger-box-92595" class="bap-trigger" style="position: absolute; opacity: 0.7; width: 19px; height: 15px; top: 32119.56640625px; left: 975.5px; "><img id="trigger-box-image-92595" src="./Linux Crontab  15 Awesome Cron Job Examples_files/box_19_top-right.png"></span><span id="trigger-92595" style="position: absolute; top: 32119.56640625px; left: 975.5px; " class="bap-trigger" onclick="BAP.action(&#39;92595&#39;, &#39;S&#39;); BAP.action(&#39;92595&#39;, &#39;M&#39;); _w.open(BAP.moreInfoHref(92595), &#39;_newtab&#39;);" onmouseover="BAP.expandIcon(92595)" onmouseout="BAP.collapseIcon(92595)"><img src="./Linux Crontab  15 Awesome Cron Job Examples_files/ci.png"></span></div></div><img width="0" height="0" src="./Linux Crontab  15 Awesome Cron Job Examples_files/pixel.gif"><img width="0" height="0" src="./Linux Crontab  15 Awesome Cron Job Examples_files/pixel(1).gif"><img width="0" height="0" src="./Linux Crontab  15 Awesome Cron Job Examples_files/pixel(2).gif"><iframe id="LOTCCFrameTue Oct 02 2012 12:27:33 GMT+0700 (ICT)" src="./Linux Crontab  15 Awesome Cron Job Examples_files/rt=ifr(2).html" style="border: 0px; width: 0px; height: 0px; display: block; "></iframe><iframe id="LOTCCFrameTue Oct 02 2012 12:27:33 GMT+0700 (ICT)" src="./Linux Crontab  15 Awesome Cron Job Examples_files/rt=ifr(1).html" style="border: 0px; width: 0px; height: 0px; display: block; "></iframe><iframe id="LOTCCFrameTue Oct 02 2012 12:27:33 GMT+0700 (ICT)" src="./Linux Crontab  15 Awesome Cron Job Examples_files/rt=ifr.html" style="border: 0px; width: 0px; height: 0px; display: block; "></iframe></body></html>